{ "type": "Script", "span": { "start": 71, "end": 609, "ctxt": 0 }, "body": [ { "type": "VariableDeclaration", "span": { "start": 71, "end": 142, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 77, "end": 141, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 77, "end": 80, "ctxt": 0 }, "value": "sab", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 83, "end": 141, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 87, "end": 104, "ctxt": 0 }, "value": "SharedArrayBuffer", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "BinaryExpression", "span": { "start": 105, "end": 140, "ctxt": 0 }, "operator": "*", "left": { "type": "MemberExpression", "span": { "start": 105, "end": 133, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 105, "end": 115, "ctxt": 0 }, "value": "Int32Array", "optional": false }, "property": { "type": "Identifier", "span": { "start": 116, "end": 133, "ctxt": 0 }, "value": "BYTES_PER_ELEMENT", "optional": false } }, "right": { "type": "NumericLiteral", "span": { "start": 136, "end": 140, "ctxt": 0 }, "value": 1024.0, "raw": "1024" } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 143, "end": 177, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 149, "end": 176, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 149, "end": 154, "ctxt": 0 }, "value": "int32", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 157, "end": 176, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 161, "end": 171, "ctxt": 0 }, "value": "Int32Array", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 172, "end": 175, "ctxt": 0 }, "value": "sab", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 178, "end": 254, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 184, "end": 253, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 184, "end": 189, "ctxt": 0 }, "value": "sab64", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 192, "end": 253, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 196, "end": 213, "ctxt": 0 }, "value": "SharedArrayBuffer", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "BinaryExpression", "span": { "start": 214, "end": 252, "ctxt": 0 }, "operator": "*", "left": { "type": "MemberExpression", "span": { "start": 214, "end": 245, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 214, "end": 227, "ctxt": 0 }, "value": "BigInt64Array", "optional": false }, "property": { "type": "Identifier", "span": { "start": 228, "end": 245, "ctxt": 0 }, "value": "BYTES_PER_ELEMENT", "optional": false } }, "right": { "type": "NumericLiteral", "span": { "start": 248, "end": 252, "ctxt": 0 }, "value": 1024.0, "raw": "1024" } } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 255, "end": 294, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 261, "end": 293, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 261, "end": 266, "ctxt": 0 }, "value": "int64", "optional": false, "typeAnnotation": null }, "init": { "type": "NewExpression", "span": { "start": 269, "end": 293, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 273, "end": 286, "ctxt": 0 }, "value": "BigInt64Array", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 287, "end": 292, "ctxt": 0 }, "value": "sab64", "optional": false } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 295, "end": 339, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 301, "end": 338, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 301, "end": 310, "ctxt": 0 }, "value": "waitValue", "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 313, "end": 338, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 313, "end": 325, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 313, "end": 320, "ctxt": 0 }, "value": "Atomics", "optional": false }, "property": { "type": "Identifier", "span": { "start": 321, "end": 325, "ctxt": 0 }, "value": "wait", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 326, "end": 331, "ctxt": 0 }, "value": "int32", "optional": false } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 333, "end": 334, "ctxt": 0 }, "value": 0.0, "raw": "0" } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 336, "end": 337, "ctxt": 0 }, "value": 0.0, "raw": "0" } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 340, "end": 396, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 346, "end": 395, "ctxt": 0 }, "id": { "type": "ObjectPattern", "span": { "start": 346, "end": 362, "ctxt": 0 }, "properties": [ { "type": "AssignmentPatternProperty", "span": { "start": 348, "end": 353, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 348, "end": 353, "ctxt": 0 }, "value": "async", "optional": false }, "value": null }, { "type": "AssignmentPatternProperty", "span": { "start": 355, "end": 360, "ctxt": 0 }, "key": { "type": "Identifier", "span": { "start": 355, "end": 360, "ctxt": 0 }, "value": "value", "optional": false }, "value": null } ], "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 365, "end": 395, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 365, "end": 382, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 365, "end": 372, "ctxt": 0 }, "value": "Atomics", "optional": false }, "property": { "type": "Identifier", "span": { "start": 373, "end": 382, "ctxt": 0 }, "value": "waitAsync", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 383, "end": 388, "ctxt": 0 }, "value": "int32", "optional": false } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 390, "end": 391, "ctxt": 0 }, "value": 0.0, "raw": "0" } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 393, "end": 394, "ctxt": 0 }, "value": 0.0, "raw": "0" } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 397, "end": 479, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 403, "end": 478, "ctxt": 0 }, "id": { "type": "ObjectPattern", "span": { "start": 403, "end": 437, "ctxt": 0 }, "properties": [ { "type": "KeyValuePatternProperty", "key": { "type": "Identifier", "span": { "start": 405, "end": 410, "ctxt": 0 }, "value": "async", "optional": false }, "value": { "type": "Identifier", "span": { "start": 412, "end": 419, "ctxt": 0 }, "value": "async64", "optional": false, "typeAnnotation": null } }, { "type": "KeyValuePatternProperty", "key": { "type": "Identifier", "span": { "start": 421, "end": 426, "ctxt": 0 }, "value": "value", "optional": false }, "value": { "type": "Identifier", "span": { "start": 428, "end": 435, "ctxt": 0 }, "value": "value64", "optional": false, "typeAnnotation": null } } ], "optional": false, "typeAnnotation": null }, "init": { "type": "CallExpression", "span": { "start": 440, "end": 478, "ctxt": 0 }, "callee": { "type": "MemberExpression", "span": { "start": 440, "end": 457, "ctxt": 0 }, "object": { "type": "Identifier", "span": { "start": 440, "end": 447, "ctxt": 0 }, "value": "Atomics", "optional": false }, "property": { "type": "Identifier", "span": { "start": 448, "end": 457, "ctxt": 0 }, "value": "waitAsync", "optional": false } }, "arguments": [ { "spread": null, "expression": { "type": "Identifier", "span": { "start": 458, "end": 463, "ctxt": 0 }, "value": "int64", "optional": false } }, { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 465, "end": 466, "ctxt": 0 }, "value": 0.0, "raw": "0" } }, { "spread": null, "expression": { "type": "CallExpression", "span": { "start": 468, "end": 477, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 468, "end": 474, "ctxt": 0 }, "value": "BigInt", "optional": false }, "arguments": [ { "spread": null, "expression": { "type": "NumericLiteral", "span": { "start": 475, "end": 476, "ctxt": 0 }, "value": 0.0, "raw": "0" } } ], "typeArguments": null } } ], "typeArguments": null }, "definite": false } ] }, { "type": "VariableDeclaration", "span": { "start": 481, "end": 601, "ctxt": 0 }, "kind": "const", "declare": false, "declarations": [ { "type": "VariableDeclarator", "span": { "start": 487, "end": 601, "ctxt": 0 }, "id": { "type": "Identifier", "span": { "start": 487, "end": 491, "ctxt": 0 }, "value": "main", "optional": false, "typeAnnotation": null }, "init": { "type": "ArrowFunctionExpression", "span": { "start": 494, "end": 601, "ctxt": 0 }, "params": [], "body": { "type": "BlockStatement", "span": { "start": 506, "end": 601, "ctxt": 0 }, "stmts": [ { "type": "IfStatement", "span": { "start": 512, "end": 551, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 516, "end": 521, "ctxt": 0 }, "value": "async", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 523, "end": 551, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 533, "end": 545, "ctxt": 0 }, "expression": { "type": "AwaitExpression", "span": { "start": 533, "end": 544, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 539, "end": 544, "ctxt": 0 }, "value": "value", "optional": false } } } ] }, "alternate": null }, { "type": "IfStatement", "span": { "start": 556, "end": 599, "ctxt": 0 }, "test": { "type": "Identifier", "span": { "start": 560, "end": 567, "ctxt": 0 }, "value": "async64", "optional": false }, "consequent": { "type": "BlockStatement", "span": { "start": 569, "end": 599, "ctxt": 0 }, "stmts": [ { "type": "ExpressionStatement", "span": { "start": 579, "end": 593, "ctxt": 0 }, "expression": { "type": "AwaitExpression", "span": { "start": 579, "end": 592, "ctxt": 0 }, "argument": { "type": "Identifier", "span": { "start": 585, "end": 592, "ctxt": 0 }, "value": "value64", "optional": false } } } ] }, "alternate": null } ] }, "async": true, "generator": false, "typeParameters": null, "returnType": null }, "definite": false } ] }, { "type": "ExpressionStatement", "span": { "start": 602, "end": 609, "ctxt": 0 }, "expression": { "type": "CallExpression", "span": { "start": 602, "end": 608, "ctxt": 0 }, "callee": { "type": "Identifier", "span": { "start": 602, "end": 606, "ctxt": 0 }, "value": "main", "optional": false }, "arguments": [], "typeArguments": null } } ], "interpreter": null }