UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,438 lines (1,437 loc) 4.59 MB
{ "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": "sinon", "range": [ 48, 53 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 9 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 56, 63 ], "loc": { "start": { "line": 3, "column": 12 }, "end": { "line": 3, "column": 19 } } }, "arguments": [ { "type": "Literal", "value": "sinon", "raw": "'sinon'", "range": [ 64, 71 ], "loc": { "start": { "line": 3, "column": 20 }, "end": { "line": 3, "column": 27 } } } ], "range": [ 56, 72 ], "loc": { "start": { "line": 3, "column": 12 }, "end": { "line": 3, "column": 28 } } }, "range": [ 48, 72 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 28 } } } ], "kind": "var", "range": [ 44, 73 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 29 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "Immediate_1", "range": [ 78, 89 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 15 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 92, 99 ], "loc": { "start": { "line": 4, "column": 18 }, "end": { "line": 4, "column": 25 } } }, "arguments": [ { "type": "Literal", "value": "../../dist/cjs/util/Immediate", "raw": "'../../dist/cjs/util/Immediate'", "range": [ 100, 131 ], "loc": { "start": { "line": 4, "column": 26 }, "end": { "line": 4, "column": 57 } } } ], "range": [ 92, 132 ], "loc": { "start": { "line": 4, "column": 18 }, "end": { "line": 4, "column": 58 } } }, "range": [ 78, 132 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 58 } } } ], "kind": "var", "range": [ 74, 133 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 59 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "Rx", "range": [ 138, 140 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 6 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 143, 150 ], "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 16 } } }, "arguments": [ { "type": "Literal", "value": "../../dist/cjs/Rx", "raw": "'../../dist/cjs/Rx'", "range": [ 151, 170 ], "loc": { "start": { "line": 5, "column": 17 }, "end": { "line": 5, "column": 36 } } } ], "range": [ 143, 171 ], "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 37 } } }, "range": [ 138, 171 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 37 } } } ], "kind": "var", "range": [ 134, 172 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 38 } }, "trailingComments": [ { "type": "Block", "value": "* @test {ImmediateDefinition} ", "range": [ 173, 207 ], "loc": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 34 } } } ] }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 208, 216 ], "loc": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "ImmediateDefinition", "raw": "'ImmediateDefinition'", "range": [ 217, 238 ], "loc": { "start": { "line": 7, "column": 9 }, "end": { "line": 7, "column": 30 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "sandbox", "range": [ 262, 269 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 15 } } }, "init": null, "range": [ 262, 269 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 15 } } } ], "kind": "var", "range": [ 258, 270 ], "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 8, "column": 16 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "beforeEach", "range": [ 275, 285 ], "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 9, "column": 14 } } }, "arguments": [ { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "Identifier", "name": "sandbox", "range": [ 308, 315 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 15 } } }, "right": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "sinon", "range": [ 318, 323 ], "loc": { "start": { "line": 10, "column": 18 }, "end": { "line": 10, "column": 23 } } }, "property": { "type": "Identifier", "name": "sandbox", "range": [ 324, 331 ], "loc": { "start": { "line": 10, "column": 24 }, "end": { "line": 10, "column": 31 } } }, "range": [ 318, 331 ], "loc": { "start": { "line": 10, "column": 18 }, "end": { "line": 10, "column": 31 } } }, "property": { "type": "Identifier", "name": "create", "range": [ 332, 338 ], "loc": { "start": { "line": 10, "column": 32 }, "end": { "line": 10, "column": 38 } } }, "range": [ 318, 338 ], "loc": { "start": { "line": 10, "column": 18 }, "end": { "line": 10, "column": 38 } } }, "arguments": [], "range": [ 318, 340 ], "loc": { "start": { "line": 10, "column": 18 }, "end": { "line": 10, "column": 40 } } }, "range": [ 308, 340 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 40 } } }, "range": [ 308, 341 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 41 } } } ], "range": [ 298, 347 ], "loc": { "start": { "line": 9, "column": 27 }, "end": { "line": 11, "column": 5 } } }, "generator": false, "expression": false, "range": [ 286, 347 ], "loc": { "start": { "line": 9, "column": 15 }, "end": { "line": 11, "column": 5 } } } ], "range": [ 275, 348 ], "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 11, "column": 6 } } }, "range": [ 275, 349 ], "loc": { "start": { "line": 9, "column": 4 }, "end": { "line": 11, "column": 7 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "afterEach", "range": [ 354, 363 ], "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 12, "column": 13 } } }, "arguments": [ { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "sandbox", "range": [ 386, 393 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 15 } } }, "property": { "type": "Identifier", "name": "restore", "range": [ 394, 401 ], "loc": { "start": { "line": 13, "column": 16 }, "end": { "line": 13, "column": 23 } } }, "range": [ 386, 401 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 23 } } }, "arguments": [], "range": [ 386, 403 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 25 } } }, "range": [ 386, 404 ], "loc": { "start": { "line": 13, "column": 8 }, "end": { "line": 13, "column": 26 } } } ], "range": [ 376, 410 ], "loc": { "start": { "line": 12, "column": 26 }, "end": { "line": 14, "column": 5 } } }, "generator": false, "expression": false, "range": [ 364, 410 ], "loc": { "start": { "line": 12, "column": 14 }, "end": { "line": 14, "column": 5 } } } ], "range": [ 354, 411 ], "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 14, "column": 6 } } }, "range": [ 354, 412 ], "loc": { "start": { "line": 12, "column": 4 }, "end": { "line": 14, "column": 7 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 417, 419 ], "loc": { "start": { "line": 15, "column": 4 }, "end": { "line": 15, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should have setImmediate and clearImmediate methods", "raw": "'should have setImmediate and clearImmediate methods'", "range": [ 420, 473 ], "loc": { "start": { "line": 15, "column": 7 }, "end": { "line": 15, "column": 60 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "result", "range": [ 501, 507 ], "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16, "column": 18 } } }, "init": { "type": "NewExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Immediate_1", "range": [ 514, 525 ], "loc": { "start": { "line": 16, "column": 25 }, "end": { "line": 16, "column": 36 } } }, "property": { "type": "Identifier", "name": "ImmediateDefinition", "range": [ 526, 545 ], "loc": { "start": { "line": 16, "column": 37 }, "end": { "line": 16, "column": 56 } } }, "range": [ 514, 545 ], "loc": { "start": { "line": 16, "column": 25 }, "end": { "line": 16, "column": 56 } } }, "arguments": [ { "type": "Identifier", "name": "__root__", "range": [ 546, 554 ], "loc": { "start": { "line": 16, "column": 57 }, "end": { "line": 16, "column": 65 } } } ], "range": [ 510, 555 ], "loc": { "start": { "line": 16, "column": 21 }, "end": { "line": 16, "column": 66 } } }, "range": [ 501, 555 ], "loc": { "start": { "line": 16, "column": 12 }, "end": { "line": 16, "column": 66 } } } ], "kind": "var", "range": [ 497, 556 ], "loc": { "start": { "line": 16, "column": 8 }, "end": { "line": 16, "column": 67 } } }, { "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": [ 565, 571 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 14 } } }, "property": { "type": "Identifier", "name": "expect", "range": [ 572, 578 ], "loc": { "start": { "line": 17, "column": 15 }, "end": { "line": 17, "column": 21 } } }, "range": [ 565, 578 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 21 } } }, "arguments": [ { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "result", "range": [ 579, 585 ], "loc": { "start": { "line": 17, "column": 22 }, "end": { "line": 17, "column": 28 } } }, "property": { "type": "Identifier", "name": "setImmediate", "range": [ 586, 598 ], "loc": { "start": { "line": 17, "column": 29 }, "end": { "line": 17, "column": 41 } } }, "range": [ 579, 598 ], "loc": { "start": { "line": 17, "column": 22 }, "end": { "line": 17, "column": 41 } } } ], "range": [ 565, 599 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 42 } } }, "property": { "type": "Identifier", "name": "to", "range": [ 600, 602 ], "loc": { "start": { "line": 17, "column": 43 }, "end": { "line": 17, "column": 45 } } }, "range": [ 565, 602 ], "loc": { "start": { "line": 17, "column": 8 }, "end": { "line": 17, "column": 45 } } }, "property": { "type": "Identifier", "name": "be", "range": [ 603, 605 ], "loc": { "start": { "line": 17, "column": 46 }, "end": { "line": 17, "column": 48 } } }, "range": [ 565, 605 ], "loc": {