UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,269 lines (1,268 loc) 239 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": "assign_1", "range": [ 48, 56 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 12 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "require", "range": [ 59, 66 ], "loc": { "start": { "line": 3, "column": 15 }, "end": { "line": 3, "column": 22 } } }, "arguments": [ { "type": "Literal", "value": "../../dist/cjs/util/assign", "raw": "'../../dist/cjs/util/assign'", "range": [ 67, 95 ], "loc": { "start": { "line": 3, "column": 23 }, "end": { "line": 3, "column": 51 } } } ], "range": [ 59, 96 ], "loc": { "start": { "line": 3, "column": 15 }, "end": { "line": 3, "column": 52 } } }, "range": [ 48, 96 ], "loc": { "start": { "line": 3, "column": 4 }, "end": { "line": 3, "column": 52 } } } ], "kind": "var", "range": [ 44, 97 ], "loc": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 53 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 98, 106 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "assign", "raw": "'assign'", "range": [ 107, 115 ], "loc": { "start": { "line": 4, "column": 9 }, "end": { "line": 4, "column": 17 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 135, 137 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 5, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should exist", "raw": "'should exist'", "range": [ 138, 152 ], "loc": { "start": { "line": 5, "column": 7 }, "end": { "line": 5, "column": 21 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "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": [ 176, 182 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 14 } } }, "property": { "type": "Identifier", "name": "expect", "range": [ 183, 189 ], "loc": { "start": { "line": 6, "column": 15 }, "end": { "line": 6, "column": 21 } } }, "range": [ 176, 189 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 21 } } }, "arguments": [ { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "assign_1", "range": [ 190, 198 ], "loc": { "start": { "line": 6, "column": 22 }, "end": { "line": 6, "column": 30 } } }, "property": { "type": "Identifier", "name": "assign", "range": [ 199, 205 ], "loc": { "start": { "line": 6, "column": 31 }, "end": { "line": 6, "column": 37 } } }, "range": [ 190, 205 ], "loc": { "start": { "line": 6, "column": 22 }, "end": { "line": 6, "column": 37 } } } ], "range": [ 176, 206 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 38 } } }, "property": { "type": "Identifier", "name": "to", "range": [ 207, 209 ], "loc": { "start": { "line": 6, "column": 39 }, "end": { "line": 6, "column": 41 } } }, "range": [ 176, 209 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 41 } } }, "property": { "type": "Identifier", "name": "be", "range": [ 210, 212 ], "loc": { "start": { "line": 6, "column": 42 }, "end": { "line": 6, "column": 44 } } }, "range": [ 176, 212 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 44 } } }, "property": { "type": "Identifier", "name": "a", "range": [ 213, 214 ], "loc": { "start": { "line": 6, "column": 45 }, "end": { "line": 6, "column": 46 } } }, "range": [ 176, 214 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 46 } } }, "arguments": [ { "type": "Literal", "value": "function", "raw": "'function'", "range": [ 215, 225 ], "loc": { "start": { "line": 6, "column": 47 }, "end": { "line": 6, "column": 57 } } } ], "range": [ 176, 226 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 58 } } }, "range": [ 176, 227 ], "loc": { "start": { "line": 6, "column": 8 }, "end": { "line": 6, "column": 59 } } } ], "range": [ 166, 233 ], "loc": { "start": { "line": 5, "column": 35 }, "end": { "line": 7, "column": 5 } } }, "generator": false, "expression": false, "range": [ 154, 233 ], "loc": { "start": { "line": 5, "column": 23 }, "end": { "line": 7, "column": 5 } } } ], "range": [ 135, 234 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 7, "column": 6 } }, "_esdocTestId": 2573, "_esdocTestName": "it2573" }, "range": [ 135, 235 ], "loc": { "start": { "line": 5, "column": 4 }, "end": { "line": 7, "column": 7 } } }, { "type": "IfStatement", "test": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Object", "range": [ 244, 250 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 14 } } }, "property": { "type": "Identifier", "name": "assign", "range": [ 251, 257 ], "loc": { "start": { "line": 8, "column": 15 }, "end": { "line": 8, "column": 21 } } }, "range": [ 244, 257 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 21 } } }, "consequent": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 269, 271 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 10 } } }, "arguments": [ { "type": "Literal", "value": "should use Object.assign if available", "raw": "'should use Object.assign if available'", "range": [ 272, 311 ], "loc": { "start": { "line": 9, "column": 11 }, "end": { "line": 9, "column": 50 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "MemberExpression", "computed": false, "object": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "chai_1", "range": [ 339, 345 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 18 } } }, "property": { "type": "Identifier", "name": "expect", "range": [ 346, 352 ], "loc": { "start": { "line": 10, "column": 19 }, "end": { "line": 10, "column": 25 } } }, "range": [ 339, 352 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 25 } } }, "arguments": [ { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "assign_1", "range": [ 353, 361 ], "loc": { "start": { "line": 10, "column": 26 }, "end": { "line": 10, "column": 34 } } }, "property": { "type": "Identifier", "name": "assign", "range": [ 362, 368 ], "loc": { "start": { "line": 10, "column": 35 }, "end": { "line": 10, "column": 41 } } }, "range": [ 353, 368 ], "loc": { "start": { "line": 10, "column": 26 }, "end": { "line": 10, "column": 41 } } } ], "range": [ 339, 369 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 42 } } }, "property": { "type": "Identifier", "name": "to", "range": [ 370, 372 ], "loc": { "start": { "line": 10, "column": 43 }, "end": { "line": 10, "column": 45 } } }, "range": [ 339, 372 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 45 } } }, "property": { "type": "Identifier", "name": "equal", "range": [ 373, 378 ], "loc": { "start": { "line": 10, "column": 46 }, "end": { "line": 10, "column": 51 } } }, "range": [ 339, 378 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 51 } } }, "arguments": [ { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Object", "range": [ 379, 385 ], "loc": { "start": { "line": 10, "column": 52 }, "end": { "line": 10, "column": 58 } } }, "property": { "type": "Identifier", "name": "assign", "range": [ 386, 392 ], "loc": { "start": { "line": 10, "column": 59 }, "end": { "line": 10, "column": 65 } } }, "range": [ 379, 392 ], "loc": { "start": { "line": 10, "column": 52 }, "end": { "line": 10, "column": 65 } } } ], "range": [ 339, 393 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 66 } } }, "range": [ 339, 394 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 67 } } } ], "range": [ 325, 404 ], "loc": { "start": { "line": 9, "column": 64 }, "end": { "line": 11, "column": 9 } } }, "generator": false, "expression": false, "range": [ 313, 404 ], "loc": { "start": { "line": 9, "column": 52 }, "end": { "line": 11, "column": 9 } } } ], "range": [ 269, 405 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 11, "column": 10 } }, "_esdocTestId": 2574, "_esdocTestName": "it2574" }, "range": [ 269, 406 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 11, "column": 11 } } } ], "range": [ 259, 412 ], "loc": { "start": { "line": 8, "column": 23 }, "end": { "line": 12, "column": 5 } } }, "alternate": null, "range": [ 240, 412 ], "loc": { "start": { "line": 8, "column": 4 }, "end": { "line": 12, "column": 5 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "it", "range": [ 417, 419 ], "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 13, "column": 6 } } }, "arguments": [ { "type": "Literal", "value": "should assign n objects to a target", "raw": "'should assign n objects to a target'", "range": [ 420, 457 ], "loc": { "start": { "line": 13, "column": 7 }, "end": { "line": 13, "column": 44 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "target", "range": [