UNPKG

@reactivex/rxjs

Version:

Reactive Extensions for modern JavaScript

1,343 lines 497 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": "Observable", "range": [ 87, 97 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 14 } } }, "init": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "Rx", "range": [ 100, 102 ], "loc": { "start": { "line": 4, "column": 17 }, "end": { "line": 4, "column": 19 } } }, "property": { "type": "Identifier", "name": "Observable", "range": [ 103, 113 ], "loc": { "start": { "line": 4, "column": 20 }, "end": { "line": 4, "column": 30 } } }, "range": [ 100, 113 ], "loc": { "start": { "line": 4, "column": 17 }, "end": { "line": 4, "column": 30 } } }, "range": [ 87, 113 ], "loc": { "start": { "line": 4, "column": 4 }, "end": { "line": 4, "column": 30 } } } ], "kind": "var", "range": [ 83, 114 ], "loc": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 31 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "describe", "range": [ 115, 123 ], "loc": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 8 } } }, "arguments": [ { "type": "Literal", "value": "Observable.prototype.onErrorResumeNext", "raw": "'Observable.prototype.onErrorResumeNext'", "range": [ 124, 164 ], "loc": { "start": { "line": 5, "column": 9 }, "end": { "line": 5, "column": 49 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "asDiagram", "range": [ 184, 193 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 13 } } }, "arguments": [ { "type": "Literal", "value": "onErrorResumeNext", "raw": "'onErrorResumeNext'", "range": [ 194, 213 ], "loc": { "start": { "line": 6, "column": 14 }, "end": { "line": 6, "column": 33 } } } ], "range": [ 184, 214 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 6, "column": 34 } } }, "arguments": [ { "type": "Literal", "value": "should continue observable sequence with next observable", "raw": "'should continue observable sequence with next observable'", "range": [ 215, 273 ], "loc": { "start": { "line": 6, "column": 35 }, "end": { "line": 6, "column": 93 } } }, { "type": "FunctionExpression", "id": null, "params": [], "body": { "type": "BlockStatement", "body": [ { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "source", "range": [ 301, 307 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 18 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "hot", "range": [ 310, 313 ], "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 7, "column": 24 } } }, "arguments": [ { "type": "Literal", "value": "--a--b--#", "raw": "'--a--b--#'", "range": [ 314, 325 ], "loc": { "start": { "line": 7, "column": 25 }, "end": { "line": 7, "column": 36 } } } ], "range": [ 310, 326 ], "loc": { "start": { "line": 7, "column": 21 }, "end": { "line": 7, "column": 37 } } }, "range": [ 301, 326 ], "loc": { "start": { "line": 7, "column": 12 }, "end": { "line": 7, "column": 37 } } } ], "kind": "var", "range": [ 297, 327 ], "loc": { "start": { "line": 7, "column": 8 }, "end": { "line": 7, "column": 38 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "next", "range": [ 340, 344 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 16 } } }, "init": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "cold", "range": [ 347, 351 ], "loc": { "start": { "line": 8, "column": 19 }, "end": { "line": 8, "column": 23 } } }, "arguments": [ { "type": "Literal", "value": "--c--d--|", "raw": "'--c--d--|'", "range": [ 352, 363 ], "loc": { "start": { "line": 8, "column": 24 }, "end": { "line": 8, "column": 35 } } } ], "range": [ 347, 364 ], "loc": { "start": { "line": 8, "column": 19 }, "end": { "line": 8, "column": 36 } } }, "range": [ 340, 364 ], "loc": { "start": { "line": 8, "column": 12 }, "end": { "line": 8, "column": 36 } } } ], "kind": "var", "range": [ 336, 365 ], "loc": { "start": { "line": 8, "column": 8 }, "end": { "line": 8, "column": 37 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "subs", "range": [ 378, 382 ], "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 16 } } }, "init": { "type": "Literal", "value": "^ !", "raw": "'^ !'", "range": [ 385, 404 ], "loc": { "start": { "line": 9, "column": 19 }, "end": { "line": 9, "column": 38 } } }, "range": [ 378, 404 ], "loc": { "start": { "line": 9, "column": 12 }, "end": { "line": 9, "column": 38 } } } ], "kind": "var", "range": [ 374, 405 ], "loc": { "start": { "line": 9, "column": 8 }, "end": { "line": 9, "column": 39 } } }, { "type": "VariableDeclaration", "declarations": [ { "type": "VariableDeclarator", "id": { "type": "Identifier", "name": "expected", "range": [ 418, 426 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 20 } } }, "init": { "type": "Literal", "value": "--a--b----c--d--|", "raw": "'--a--b----c--d--|'", "range": [ 429, 448 ], "loc": { "start": { "line": 10, "column": 23 }, "end": { "line": 10, "column": 42 } } }, "range": [ 418, 448 ], "loc": { "start": { "line": 10, "column": 12 }, "end": { "line": 10, "column": 42 } } } ], "kind": "var", "range": [ 414, 449 ], "loc": { "start": { "line": 10, "column": 8 }, "end": { "line": 10, "column": 43 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "expectObservable", "range": [ 458, 474 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 24 } } }, "arguments": [ { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "source", "range": [ 475, 481 ], "loc": { "start": { "line": 11, "column": 25 }, "end": { "line": 11, "column": 31 } } }, "property": { "type": "Identifier", "name": "onErrorResumeNext", "range": [ 482, 499 ], "loc": { "start": { "line": 11, "column": 32 }, "end": { "line": 11, "column": 49 } } }, "range": [ 475, 499 ], "loc": { "start": { "line": 11, "column": 25 }, "end": { "line": 11, "column": 49 } } }, "arguments": [ { "type": "Identifier", "name": "next", "range": [ 500, 504 ], "loc": { "start": { "line": 11, "column": 50 }, "end": { "line": 11, "column": 54 } } } ], "range": [ 475, 505 ], "loc": { "start": { "line": 11, "column": 25 }, "end": { "line": 11, "column": 55 } } } ], "range": [ 458, 506 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 56 } } }, "property": { "type": "Identifier", "name": "toBe", "range": [ 507, 511 ], "loc": { "start": { "line": 11, "column": 57 }, "end": { "line": 11, "column": 61 } } }, "range": [ 458, 511 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 61 } } }, "arguments": [ { "type": "Identifier", "name": "expected", "range": [ 512, 520 ], "loc": { "start": { "line": 11, "column": 62 }, "end": { "line": 11, "column": 70 } } } ], "range": [ 458, 521 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 71 } } }, "range": [ 458, 522 ], "loc": { "start": { "line": 11, "column": 8 }, "end": { "line": 11, "column": 72 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpression", "callee": { "type": "MemberExpression", "computed": false, "object": { "type": "CallExpression", "callee": { "type": "Identifier", "name": "expectSubscriptions", "range": [ 531, 550 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 27 } } }, "arguments": [ { "type": "MemberExpression", "computed": false, "object": { "type": "Identifier", "name": "source", "range": [ 551, 557 ], "loc": { "start": { "line": 12, "column": 28 }, "end": { "line": 12, "column": 34 } } }, "property": { "type": "Identifier", "name": "subscriptions", "range": [ 558, 571 ], "loc": { "start": { "line": 12, "column": 35 }, "end": { "line": 12, "column": 48 } } }, "range": [ 551, 571 ], "loc": { "start": { "line": 12, "column": 28 }, "end": { "line": 12, "column": 48 } } } ], "range": [ 531, 572 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 49 } } }, "property": { "type": "Identifier", "name": "toBe", "range": [ 573, 577 ], "loc": { "start": { "line": 12, "column": 50 }, "end": { "line": 12, "column": 54 } } }, "range": [ 531, 577 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 54 } } }, "arguments": [ { "type": "Identifier", "name": "subs", "range": [ 578, 582 ], "loc": { "start": { "line": 12, "column": 55 }, "end": { "line": 12, "column": 59 } } } ], "range": [ 531, 583 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 60 } } }, "range": [ 531, 584 ], "loc": { "start": { "line": 12, "column": 8 }, "end": { "line": 12, "column": 61 } } } ], "range": [ 287, 590 ], "loc": { "start": { "line": 6, "column": 107 }, "end": { "line": 13, "column": 5 } } }, "generator": false, "expression": false, "range": [ 275, 590 ], "loc": { "start": { "line": 6, "column": 95 }, "end": { "line": 13, "column": 5 } } } ], "range": [ 184, 591 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 13, "column": 6 } } }, "range": [ 184, 592 ], "loc": { "start": { "line": 6, "column": 4 }, "end": { "line": 13, "column": 7 } } }, { "type": "ExpressionStatement", "expression": { "type": "CallExpre