UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,331 lines (1,330 loc) 355 kB
{ "type": "Program", "body": [ { "type": "ExpressionStatement", "expression": { "type": "Literal", "value": "use strict", "raw": "\"use strict\"", "range": [ 0, 12 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 12 } } }, "range": [ 0, 13 ], "loc": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 13 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "chai_1", "range": [ 18, 24 ], "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 10 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 27, 34 ], "loc": { "start": { "line": 2, "column": 13 }, "end": { "line": 2, "column": 20 } } }, "arguments": [ { "type": "Literal", "value": "chai", "raw": "'chai'", "range": [ 35, 41 ], "loc": { "start": { "line": 2, "column": 21 }, "end": { "line": 2, "column": 27 } } } ], "range": [ 27, 42 ], "loc": { "start": { "line": 2, "column": 13 }, "end": { "line": 2, "column": 28 } } }, "range": [ 18, 42 ], "loc": { "start": { "line": 2, "column": 4 }, "end": { "line": 2, "column": 28 } } } ], "kind": "var", "range": [ 14, 43 ], "loc": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 29 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "Rx", "range": [ 48, 50 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 6 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 53, 60 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 16 } } }, "arguments": [ { "type": "Literal", "value": "../../dist/cjs/Rx", "raw": "'../../dist/cjs/Rx'", "range": [ 61, 80 ], "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 3, "column": 36 } } } ], "range": [ 53, 81 ], "loc": { "start": { "line": 3, "column": 9 }, "end": { "line": 3, "column": 37 } } }, "range": [ 48, 81 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 37 } } } ], "kind": "var", "range": [ 44, 82 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 38 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "VirtualTimeScheduler", "range": [ 87, 107 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 24 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Rx", "range": [ 110, 112 ], "loc": { "start": { "line": 4, "column": 27 }, "end": { "line": 4, "column": 29 } } }, "property": { "type": "Identifier", "name": "VirtualTimeScheduler", "range": [ 113, 133 ], "loc": { "start": { "line": 4, "column": 30 }, "end": { "line": 4, "column": 50 } } }, "range": [ 110, 133 ], "loc": { "start": { "line": 4, "column": 27 }, "end": { "line": 4, "column": 50 } } }, "range": [ 87, 133 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 50 } } } ], "kind": "var", "range": [ 83, 134 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 51 } }, "trailingComments": [ { "type": "Block", "value": "* @test {VirtualTimeScheduler} ", "range": [ 135, 170 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 35 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 171, 179 ], "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "VirtualTimeScheduler", "raw": "'VirtualTimeScheduler'", "range": [ 180, 202 ], "loc": { "start": { "line": 6, "column": 9 }, "end": { "line": 6, "column": 31 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 222, 224 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 7, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should exist", "raw": "'should exist'", "range": [ 225, 239 ], "loc": { "start": { "line": 7, "column": 7 }, "end": { "line": 7, "column": 21 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "MemberExpression", "computed": false, "object": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "chai_1", "range": [ 263, 269 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 14 } } }, "property": { "type": "Identifier", "name": "expect", "range": [ 270, 276 ], "loc": { "start": { "line": 8, "column": 15 }, "end": { "line": 8, "column": 21 } } }, "range": [ 263, 276 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 21 } } }, "arguments": [ { "type": "Identifier", "name": "VirtualTimeScheduler", "range": [ 277, 297 ], "loc": { "start": { "line": 8, "column": 22 }, "end": { "line": 8, "column": 42 } } } ], "range": [ 263, 298 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 43 } } }, "property": { "type": "Identifier", "name": "exist", "range": [ 299, 304 ], "loc": { "start": { "line": 8, "column": 44 }, "end": { "line": 8, "column": 49 } } }, "range": [ 263, 304 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 49 } } }, "range": [ 263, 305 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 50 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "chai_1", "range": [ 314, 320 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 14 } } }, "property": { "type": "Identifier", "name": "expect", "range": [ 321, 327 ], "loc": { "start": { "line": 9, "column": 15 }, "end": { "line": 9, "column": 21 } } }, "range": [ 314, 327 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 21 } } }, "arguments": [ { "type": "Identifier", "name": "VirtualTimeScheduler", "range": [ 328, 348 ], "loc": { "start": { "line": 9, "column": 22 }, "end": { "line": 9, "column": 42 } } } ], "range": [ 314, 349 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 43 } } }, "property": { "type": "Identifier", "name": "to", "range": [ 350, 352 ], "loc": { "start": { "line": 9, "column": 44 }, "end": { "line": 9, "column": 46 } } }, "range": [ 314, 352 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 46 } } }, "property": { "type": "Identifier", "name": "be", "range": [ 353, 355 ], "loc": { "start": { "line": 9, "column": 47 }, "end": { "line": 9, "column": 49 } } }, "range": [ 314, 355 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 49 } } }, "property": { "type": "Identifier", "name": "a", "range": [ 356, 357 ], "loc": { "start": { "line": 9, "column": 50 }, "end": { "line": 9, "column": 51 } } }, "range": [ 314, 357 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 51 } } }, "arguments": [ { "type": "Literal", "value": "function", "raw": "'function'", "range": [ 358, 368 ], "loc": { "start": { "line": 9, "column": 52 }, "end": { "line": 9, "column": 62 } } } ], "range": [ 314, 369 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 63 } } }, "range": [ 314, 370 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 64 } } } ], "range": [ 253, 376 ], "loc": { "start": { "line": 7, "column": 35 }, "end": { "line": 10, "column": 5 } } }, "generator": false, "expression": false, "range": [ 241, 376 ], "loc": { "start": { "line": 7, "column": 23 }, "end": { "line": 10, "column": 5 } } } ], "range": [ 222, 377 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 10, "column": 6 } }, "_esdocTestId": 2408, "_esdocTestName": "it2408" }, "range": [ 222, 378 ], "loc": { "start": { "line": 7, "column": 4 }, "end": { "line": 10, "column": 7 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 383, 385 ], "loc": { "start": { "line": 11, "column": 4 }, "end": { "line": 11, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should schedule things in order when flushed if each this is scheduled synchrously", "raw": "'should schedule things in order when flushed if each this is scheduled synchrously'", "range": [ 386, 470 ], "loc": { "start": { "line": 11, "column": 7 }, "end": { "line": 11, "column": 91 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "v", "range": [ 498, 499 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 13 } } }, "init": { "type": "NewExpression", "callee": { "type": "Identifier", "name": "VirtualTimeScheduler", "range": [ 506, 526 ], "loc": { "start": { "line": 12, "column": 20 }, "end": { "line": 12, "column": 40 } } }, "arguments": [], "range": [ 502, 528 ], "loc": { "start": { "line": 12, "column": 16 }, "end": { "line": 12, "column": 42 } } }, "range": [ 498, 528 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 42 } } } ], "kind": "var", "range": [ 494, 529 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 43 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "invoked", "range": [ 542, 549 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 19 } } }, "init": { "type": "ArrayExpression", "elements": [], "range": [ 552, 554 ], "loc": { "start": { "line": 13, "column": 22 }, "end": { "line": 13, "column": 24 } } }, "range": [ 542, 554 ], "loc": { "start": { "line": 13, "column": 12 }, "end": { "line": 13, "column": 24 } } } ], "kind": "var", "range": [ 538, 555 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 25 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "invoke", "range": [ 568, 574 ], "loc": { "start": { "line": 14, "column": 12 }, "end": { "line": 14, "column": 18 } } }, "init": { "type": "FunctionExpression", "id": null, "params": [ { "type": "Identifier", "name": "state", "range": [ 587, 592 ], "loc": { "start": { "line": 14, "column": 31 }, "end": { "line": 14, "column": 36 } } } ], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "invoked", "range": [ 608, 615 ], "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 19 } } }, "property": { "type": "Identifier", "name": "push", "range": [ 616, 620 ], "loc": { "start": { "line": 15, "column": 20 }, "end": { "line": 15, "column": 24 } } }, "range": [ 608, 620 ], "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 24 } } }, "arguments": [ { "type": "Identifier", "name": "state", "range": [ 621, 626 ], "loc": { "start": { "line": 15, "column": 25 }, "end": { "line": 15, "column": 30 } } } ], "range": [ 608, 627 ], "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 31 } } }, "range": [ 608, 628 ], "loc": { "start": { "line": 15, "column": 12 }, "end": { "line": 15, "column": 32 } } } ], "range": [ 594, 638 ], "loc": { "start": { "line": 14,