UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,188 lines (1,187 loc) 530 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": "iterator_1", "range": [ 48, 58 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 14 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 61, 68 ], "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 3, "column": 24 } } }, "arguments": [ { "type": "Literal", "value": "../../dist/cjs/symbol/iterator", "raw": "'../../dist/cjs/symbol/iterator'", "range": [ 69, 101 ], "loc": { "start": { "line": 3, "column": 25 }, "end": { "line": 3, "column": 57 } } } ], "range": [ 61, 102 ], "loc": { "start": { "line": 3, "column": 17 }, "end": { "line": 3, "column": 58 } } }, "range": [ 48, 102 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 58 } } } ], "kind": "var", "range": [ 44, 103 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 59 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 104, 112 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "iterator symbol", "raw": "'iterator symbol'", "range": [ 113, 130 ], "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 26 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 150, 152 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should exist", "raw": "'should exist'", "range": [ 153, 167 ], "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 21 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "chai_1", "range": [ 191, 197 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 14 } } }, "property": { "type": "Identifier", "name": "expect", "range": [ 198, 204 ], "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 6, "column": 21 } } }, "range": [ 191, 204 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 21 } } }, "arguments": [ { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "iterator_1", "range": [ 205, 215 ], "loc": { "start": { "line": 6, "column": 22 }, "end": { "line": 6, "column": 32 } } }, "property": { "type": "Identifier", "name": "$$iterator", "range": [ 216, 226 ], "loc": { "start": { "line": 6, "column": 33 }, "end": { "line": 6, "column": 43 } } }, "range": [ 205, 226 ], "loc": { "start": { "line": 6, "column": 22 }, "end": { "line": 6, "column": 43 } } } ], "range": [ 191, 227 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 44 } } }, "property": { "type": "Identifier", "name": "to", "range": [ 228, 230 ], "loc": { "start": { "line": 6, "column": 45 }, "end": { "line": 6, "column": 47 } } }, "range": [ 191, 230 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 47 } } }, "property": { "type": "Identifier", "name": "exist", "range": [ 231, 236 ], "loc": { "start": { "line": 6, "column": 48 }, "end": { "line": 6, "column": 53 } } }, "range": [ 191, 236 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 53 } } }, "range": [ 191, 237 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 54 } } } ], "range": [ 181, 243 ], "loc": { "start": { "line": 5, "column": 35 }, "end": { "line": 7, "column": 5 } } }, "generator": false, "expression": false, "range": [ 169, 243 ], "loc": { "start": { "line": 5, "column": 23 }, "end": { "line": 7, "column": 5 } } } ], "range": [ 150, 244 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 7, "column": 6 } }, "_esdocTestId": 2454, "_esdocTestName": "it2454" }, "range": [ 150, 245 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 7, "column": 7 } } } ], "range": [ 144, 247 ], "loc": { "start": { "line": 4, "column": 40 }, "end": { "line": 8, "column": 1 } } }, "generator": false, "expression": false, "range": [ 132, 247 ], "loc": { "start": { "line": 4, "column": 28 }, "end": { "line": 8, "column": 1 } } } ], "range": [ 104, 248 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 8, "column": 2 } }, "_esdocTestId": 2453, "_esdocTestName": "describe2453" }, "range": [ 104, 249 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 8, "column": 3 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 250, 258 ], "loc": { "start": { "line": 9, "column": 0 }, "end": { "line": 9, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "symbolIteratorPonyfill", "raw": "'symbolIteratorPonyfill'", "range": [ 259, 283 ], "loc": { "start": { "line": 9, "column": 9 }, "end": { "line": 9, "column": 33 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 303, 311 ], "loc": { "start": { "line": 10, "column": 4 }, "end": { "line": 10, "column": 12 } } }, "arguments": [ { "type": "Literal", "value": "when root.Symbol is a function", "raw": "'when root.Symbol is a function'", "range": [ 312, 344 ], "loc": { "start": { "line": 10, "column": 13 }, "end": { "line": 10, "column": 45 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 368, 376 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 16 } } }, "arguments": [ { "type": "Literal", "value": "and Symbol.iterator exists", "raw": "'and Symbol.iterator exists'", "range": [ 377, 405 ], "loc": { "start": { "line": 11, "column": 17 }, "end": { "line": 11, "column": 45 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 433, 435 ], "loc": { "start": { "line": 12, "column": 12 }, "end": { "line": 12, "column": 14 } } }, "arguments": [ { "type": "Literal", "value": "should return Symbol.iterator", "raw": "'should return Symbol.iterator'", "range": [ 436, 467 ], "loc": { "start": { "line": 12, "column": 15 }, "end": { "line": 12, "column": 46 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "FakeSymbol", "range": [ 503, 513 ], "loc": { "start": { "line": 13, "column": 20 }, "end": { "line": 13, "column": 30 } } }, "init": { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [], "range": [ 528, 531 ], "loc": { "start": { "line": 13, "column": 45 }, "end": { "line": 13, "column": 48 } } }, "generator": false, "expression": false, "range": [ 516, 531 ], "loc": { "start": { "line": 13, "column": 33 }, "end": { "line": 13, "column": 48 } } }, "range": [ 503, 531 ], "loc": { "start": { "line": 13, "column": 20 }, "end": { "line": 13, "column": 48 } } } ], "kind": "var", "range": [ 499, 532 ], "loc": { "start": { "line": 13, "column": 16 }, "end": { "line": 13, "column": 49 } } }, { "type": "ExpressionStatement", "expression": { "type": "AssignmentExpression", "operator": "=", "left": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "FakeSymbol", "range": [ 549, 559 ], "loc": { "start": { "line": 14, "column": 16 }, "end": { "line": 14, "column": 26 } } }, "property": { "type": "Identifier", "name": "iterator", "range": [ 560, 568 ], "loc": { "start": { "line": 14, "column": 27 }, "end": { "line": 14, "column": 35 } } }, "range": [ 549, 568 ], "loc": { "start": { "line": 14, "column": 16 }, "end": { "line": 14, "column": 35 } } }, "right": { "type": "ObjectExpression", "properties": [], "range": [ 571, 573 ], "loc": { "start": { "line": 14, "column": 38 }, "end": { "line": 14, "column": 40 } } }, "range": [ 549, 573 ], "loc": { "start": { "line": 14, "column": 16 }, "end": { "line": 14, "column": 40 } } }, "range": [ 549, 574 ], "loc": { "start": { "line": 14, "column": 16 }, "end": { "line": 14, "column": 41 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "result", "range": [ 595, 601 ], "loc": { "start": { "line": 15, "column": 20 }, "end": { "line": 15, "column": 26 } } }, "init": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "iterator_1", "range": [ 604, 614 ], "loc": { "start": { "line": 15, "column": 29 }, "end": { "line": 15, "column": 39 } } }, "property": { "type": "Identifier", "name": "symbolIteratorPonyfill", "range": [ 615, 637 ], "loc": { "start": { "line": 15, "column": 40 }, "end": { "line": 15, "column": 62 } } }, "range": [ 604, 637 ], "loc": { "start": { "line": 15, "column": 29 }, "end": { "line": 15, "column": 62 } } }, "arguments": [ { "type": "ObjectExpression", "properties": [