{ "type": "Script", "span": { "start": 61, "end": 598, "ctxt": 0 }, "body": [ { "type": "FunctionDeclaration", "identifier": { "type": "Identifier", "span": { "start": 70, "end": 71, "ctxt": 0 }, "value": "C", "optional": false }, "declare": false, "params": [], "decorators": [], "span": { "start": 61, "end": 96, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 74, "end": 96, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 80, "end": 94, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 80, "end": 93, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 80, "end": 86, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 80, "end": 84, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 85, "end": 86, "ctxt": 0 }, "value": "m", "optional": false } }, "right": { "type": "NullLiteral", "span": { "start": 89, "end": 93, "ctxt": 0 } } } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, { "type": "ExpressionStatement", "span": { "start": 97, "end": 147, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 97, "end": 147, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 97, "end": 110, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 97, "end": 108, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 97, "end": 98, "ctxt": 0 }, "value": "C", "optional": false }, "property": { "type": "Identifier", "span": { "start": 99, "end": 108, "ctxt": 0 }, "value": "prototype", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 109, "end": 110, "ctxt": 0 }, "value": "m", "optional": false } }, "right": { "type": "FunctionExpression", "identifier": null, "params": [], "decorators": [], "span": { "start": 113, "end": 147, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 124, "end": 147, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 130, "end": 145, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 130, "end": 144, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 130, "end": 142, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 130, "end": 134, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 135, "end": 142, "ctxt": 0 }, "value": "nothing", "optional": false } }, "arguments": [], "typeArguments": null } } ] }, "generator": false, "async": false, "typeParameters": null, "returnType": null } } }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 154, "end": 155, "ctxt": 0 }, "value": "X", "optional": false }, "declare": false, "span": { "start": 148, "end": 312, "ctxt": 0 }, "decorators": [], "body": [ { "type": "Constructor", "span": { "start": 162, "end": 272, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 162, "end": 173, "ctxt": 0 }, "value": "constructor", "optional": false }, "params": [], "body": { "type": "BlockStatement", "span": { "start": 176, "end": 272, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 186, "end": 213, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 186, "end": 212, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 186, "end": 192, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 186, "end": 190, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 191, "end": 192, "ctxt": 0 }, "value": "m", "optional": false } }, "right": { "type": "CallExpression", "span": { "start": 195, "end": 212, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 195, "end": 206, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 195, "end": 201, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 195, "end": 199, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 200, "end": 201, "ctxt": 0 }, "value": "m", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 202, "end": 206, "ctxt": 0 }, "value": "bind", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 207, "end": 211, "ctxt": 0 } } } ], "typeArguments": null } } }, { "type": "ExpressionStatement", "span": { "start": 222, "end": 266, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 222, "end": 265, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 222, "end": 234, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 222, "end": 226, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 227, "end": 234, "ctxt": 0 }, "value": "mistake", "optional": false } }, "right": { "type": "StringLiteral", "span": { "start": 237, "end": 265, "ctxt": 0 }, "value": "frankly, complete nonsense", "raw": "'frankly, complete nonsense'" } } } ] }, "accessibility": null, "isOptional": false }, { "type": "ClassMethod", "span": { "start": 277, "end": 288, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 277, "end": 278, "ctxt": 0 }, "value": "m", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 277, "end": 288, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 281, "end": 288, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 293, "end": 310, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 293, "end": 300, "ctxt": 0 }, "value": "mistake", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 293, "end": 310, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 303, "end": 310, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "VariableDeclaration", "span": { "start": 313, "end": 329, "ctxt": 0 }, "kind": "let", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 317, "end": 328, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 317, "end": 318, "ctxt": 0 }, "value": "x", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 321, "end": 328, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 325, "end": 326, "ctxt": 0 }, "value": "X", "optional": false }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 330, "end": 358, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 330, "end": 357, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 330, "end": 349, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 330, "end": 341, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 330, "end": 331, "ctxt": 0 }, "value": "X", "optional": false }, "property": { "type": "Identifier", "span": { "start": 332, "end": 341, "ctxt": 0 }, "value": "prototype", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 342, "end": 349, "ctxt": 0 }, "value": "mistake", "optional": false } }, "right": { "type": "BooleanLiteral", "span": { "start": 352, "end": 357, "ctxt": 0 }, "value": false } } }, { "type": "ExpressionStatement", "span": { "start": 359, "end": 365, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 359, "end": 364, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 359, "end": 362, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 359, "end": 360, "ctxt": 0 }, "value": "x", "optional": false }, "property": { "type": "Identifier", "span": { "start": 361, "end": 362, "ctxt": 0 }, "value": "m", "optional": false } }, "arguments": [], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 366, "end": 376, "ctxt": 0 }, "expression": { "type": "MemberExpression", "span": { "start": 366, "end": 375, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 366, "end": 367, "ctxt": 0 }, "value": "x", "optional": false }, "property": { "type": "Identifier", "span": { "start": 368, "end": 375, "ctxt": 0 }, "value": "mistake", "optional": false } } }, { "type": "ClassDeclaration", "identifier": { "type": "Identifier", "span": { "start": 383, "end": 384, "ctxt": 0 }, "value": "Y", "optional": false }, "declare": false, "span": { "start": 377, "end": 533, "ctxt": 0 }, "decorators": [], "body": [ { "type": "ClassMethod", "span": { "start": 391, "end": 408, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 391, "end": 398, "ctxt": 0 }, "value": "mistake", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 391, "end": 408, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 401, "end": 408, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "ClassMethod", "span": { "start": 413, "end": 424, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 413, "end": 414, "ctxt": 0 }, "value": "m", "optional": false }, "function": { "params": [], "decorators": [], "span": { "start": 413, "end": 424, "ctxt": 0 }, "body": { "type": "BlockStatement", "span": { "start": 417, "end": 424, "ctxt": 0 }, "stmts": [] }, "generator": false, "async": false, "typeParameters": null, "returnType": null }, "kind": "method", "isStatic": false, "accessibility": null, "isAbstract": false, "isOptional": false, "isOverride": false }, { "type": "Constructor", "span": { "start": 429, "end": 531, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 429, "end": 440, "ctxt": 0 }, "value": "constructor", "optional": false }, "params": [], "body": { "type": "BlockStatement", "span": { "start": 443, "end": 531, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 453, "end": 480, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 453, "end": 479, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 453, "end": 459, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 453, "end": 457, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 458, "end": 459, "ctxt": 0 }, "value": "m", "optional": false } }, "right": { "type": "CallExpression", "span": { "start": 462, "end": 479, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 462, "end": 473, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 462, "end": 468, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 462, "end": 466, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 467, "end": 468, "ctxt": 0 }, "value": "m", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 469, "end": 473, "ctxt": 0 }, "value": "bind", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "ThisExpression", "span": { "start": 474, "end": 478, "ctxt": 0 } } } ], "typeArguments": null } } }, { "type": "ExpressionStatement", "span": { "start": 489, "end": 525, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 489, "end": 524, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 489, "end": 501, "ctxt": 0 }, "object": { "type": "ThisExpression", "span": { "start": 489, "end": 493, "ctxt": 0 } }, "property": { "type": "Identifier", "span": { "start": 494, "end": 501, "ctxt": 0 }, "value": "mistake", "optional": false } }, "right": { "type": "StringLiteral", "span": { "start": 504, "end": 524, "ctxt": 0 }, "value": "even more nonsense", "raw": "'even more nonsense'" } } } ] }, "accessibility": null, "isOptional": false } ], "superClass": null, "isAbstract": false, "typeParams": null, "superTypeParams": null, "implements": [] }, { "type": "ExpressionStatement", "span": { "start": 534, "end": 561, "ctxt": 0 }, "expression": { "type": "AssignmentExpression", "span": { "start": 534, "end": 560, "ctxt": 0 }, "operator": "=", "left": { "type": "MemberExpression", "span": { "start": 534, "end": 553, "ctxt": 0 }, "object": { "type": "MemberExpression", "span": { "start": 534, "end": 545, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 534, "end": 535, "ctxt": 0 }, "value": "Y", "optional": false }, "property": { "type": "Identifier", "span": { "start": 536, "end": 545, "ctxt": 0 }, "value": "prototype", "optional": false } }, "property": { "type": "Identifier", "span": { "start": 546, "end": 553, "ctxt": 0 }, "value": "mistake", "optional": false } }, "right": { "type": "BooleanLiteral", "span": { "start": 556, "end": 560, "ctxt": 0 }, "value": true } } }, { "type": "VariableDeclaration", "span": { "start": 562, "end": 578, "ctxt": 0 }, "kind": "let", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 566, "end": 577, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 566, "end": 567, "ctxt": 0 }, "value": "y", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 570, "end": 577, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 574, "end": 575, "ctxt": 0 }, "value": "Y", "optional": false }, "arguments": [], "typeArguments": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 579, "end": 585, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 579, "end": 584, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 579, "end": 582, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 579, "end": 580, "ctxt": 0 }, "value": "y", "optional": false }, "property": { "type": "Identifier", "span": { "start": 581, "end": 582, "ctxt": 0 }, "value": "m", "optional": false } }, "arguments": [], "typeArguments": null } }, { "type": "ExpressionStatement", "span": { "start": 586, "end": 598, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 586, "end": 597, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 586, "end": 595, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 586, "end": 587, "ctxt": 0 }, "value": "y", "optional": false }, "property": { "type": "Identifier", "span": { "start": 588, "end": 595, "ctxt": 0 }, "value": "mistake", "optional": false } }, "arguments": [], "typeArguments": null } } ], "interpreter": null }