@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,454 lines (1,453 loc) • 689 kB
JSON
{
"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": "subscribeToResult_1",
"range": [
87,
106
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 23
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require",
"range": [
109,
116
],
"loc": {
"start": {
"line": 4,
"column": 26
},
"end": {
"line": 4,
"column": 33
}
}
},
"arguments": [
{
"type": "Literal",
"value": "../../dist/cjs/util/subscribeToResult",
"raw": "'../../dist/cjs/util/subscribeToResult'",
"range": [
117,
156
],
"loc": {
"start": {
"line": 4,
"column": 34
},
"end": {
"line": 4,
"column": 73
}
}
}
],
"range": [
109,
157
],
"loc": {
"start": {
"line": 4,
"column": 26
},
"end": {
"line": 4,
"column": 74
}
}
},
"range": [
87,
157
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 74
}
}
}
],
"kind": "var",
"range": [
83,
158
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 75
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "OuterSubscriber_1",
"range": [
163,
180
],
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 21
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require",
"range": [
183,
190
],
"loc": {
"start": {
"line": 5,
"column": 24
},
"end": {
"line": 5,
"column": 31
}
}
},
"arguments": [
{
"type": "Literal",
"value": "../../dist/cjs/OuterSubscriber",
"raw": "'../../dist/cjs/OuterSubscriber'",
"range": [
191,
223
],
"loc": {
"start": {
"line": 5,
"column": 32
},
"end": {
"line": 5,
"column": 64
}
}
}
],
"range": [
183,
224
],
"loc": {
"start": {
"line": 5,
"column": 24
},
"end": {
"line": 5,
"column": 65
}
}
},
"range": [
163,
224
],
"loc": {
"start": {
"line": 5,
"column": 4
},
"end": {
"line": 5,
"column": 65
}
}
}
],
"kind": "var",
"range": [
159,
225
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 66
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "iterator_1",
"range": [
230,
240
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 14
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require",
"range": [
243,
250
],
"loc": {
"start": {
"line": 6,
"column": 17
},
"end": {
"line": 6,
"column": 24
}
}
},
"arguments": [
{
"type": "Literal",
"value": "../../dist/cjs/symbol/iterator",
"raw": "'../../dist/cjs/symbol/iterator'",
"range": [
251,
283
],
"loc": {
"start": {
"line": 6,
"column": 25
},
"end": {
"line": 6,
"column": 57
}
}
}
],
"range": [
243,
284
],
"loc": {
"start": {
"line": 6,
"column": 17
},
"end": {
"line": 6,
"column": 58
}
}
},
"range": [
230,
284
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 58
}
}
}
],
"kind": "var",
"range": [
226,
285
],
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 59
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "symbol_observable_1",
"range": [
290,
309
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 23
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require",
"range": [
312,
319
],
"loc": {
"start": {
"line": 7,
"column": 26
},
"end": {
"line": 7,
"column": 33
}
}
},
"arguments": [
{
"type": "Literal",
"value": "symbol-observable",
"raw": "'symbol-observable'",
"range": [
320,
339
],
"loc": {
"start": {
"line": 7,
"column": 34
},
"end": {
"line": 7,
"column": 53
}
}
}
],
"range": [
312,
340
],
"loc": {
"start": {
"line": 7,
"column": 26
},
"end": {
"line": 7,
"column": 54
}
}
},
"range": [
290,
340
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 54
}
}
}
],
"kind": "var",
"range": [
286,
341
],
"loc": {
"start": {
"line": 7,
"column": 0
},
"end": {
"line": 7,
"column": 55
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "describe",
"range": [
342,
350
],
"loc": {
"start": {
"line": 8,
"column": 0
},
"end": {
"line": 8,
"column": 8
}
}
},
"arguments": [
{
"type": "Literal",
"value": "subscribeToResult",
"raw": "'subscribeToResult'",
"range": [
351,
370
],
"loc": {
"start": {
"line": 8,
"column": 9
},
"end": {
"line": 8,
"column": 28
}
}
},
{
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "it",
"range": [
390,
392
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 6
}
}
},
"arguments": [
{
"type": "Literal",
"value": "should synchronously complete when subscribe to scalarObservable",
"raw": "'should synchronously complete when subscribe to scalarObservable'",
"range": [
393,
459
],
"loc": {
"start": {
"line": 9,
"column": 7
},
"end": {
"line": 9,
"column": 73
}
}
},
{
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "result",
"range": [
487,
493
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 18
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Rx",
"range": [
496,
498
],
"loc": {
"start": {
"line": 10,
"column": 21
},
"end": {
"line": 10,
"column": 23
}
}
},
"property": {
"type": "Identifier",
"name": "Observable",
"range": [
499,
509
],
"loc": {
"start": {
"line": 10,
"column": 24
},
"end": {
"line": 10,
"column": 34
}
}
},
"range": [
496,
509
],
"loc": {
"start": {
"line": 10,
"column": 21
},
"end": {
"line": 10,
"column": 34
}
}
},
"property": {
"type": "Identifier",
"name": "of",
"range": [
510,
512
],
"loc": {
"start": {
"line": 10,
"column": 35
},
"end": {
"line": 10,
"column": 37
}
}
},
"range": [
496,
512
],
"loc": {
"start": {
"line": 10,
"column": 21
},
"end": {
"line": 10,
"column": 37
}
}
},
"arguments": [
{
"type": "Literal",
"value": 42,
"raw": "42",
"range": [
513,
515
],
"loc": {
"start": {
"line": 10,
"column": 38
},
"end": {
"line": 10,
"column": 40
}
}
}
],
"range": [
496,
516
],
"loc": {
"start": {
"line": 10,
"column": 21
},
"end": {
"line": 10,
"column": 41
}
}
},
"range": [
487,
516
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 41
}
}
}
],
"kind": "var",
"range": [
483,
517
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 42
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "expected",
"range": [
530,
538
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 20
}
}
},
"init": null,
"range": [
530,
538
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 20
}
}
}
],
"kind": "var",
"range": [
526,
539
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 21
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "subscriber",
"range": [
552,
562
],
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 22
}
}
},
"init": {
"type": "NewExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "OuterSubscriber_1",
"range": [
569,
586
],
"loc": {
"start": {
"line": 12,
"column": 29
},
"end": {
"line": 12,
"column": 46
}
}
},
"property": {
"type": "Identifier",
"name": "OuterSubscriber",
"range": [
587,
602
],
"loc": {
"start": {
"line": 12,
"column": 47
},
"end": {
"line": 12,
"column": 62
}
}
},
"range": [
569,
602
],
"loc": {
"start": {
"line": 12,
"column": 29
},
"end": {
"line": 12,
"column": 62
}
}
},
"arguments": [
{
"type": "FunctionExpression",
"id": null,
"params": [
{
"type": "Identifier",
"name": "x",
"range": [
613,
614
],
"loc": {
"start": {
"line": 12,
"column": 73
},
"end": {
"line": 12,
"column": 74
}
}
}
],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ReturnStatement",
"argument": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "expected",
"range": [
625,
633
],
"loc": {
"start": {
"line": 12,
"column": 85
},
"end": {
"line": 12,
"column": 93
}
}
},
"right": {
"type": "Identifier",
"name": "x",
"range": [
636,
637
],
"loc": {
"start": {
"line": 12,
"column": 96
},
"end": {
"line": 12,
"column": 97
}
}
},
"range": [
625,
637
],
"loc": {
"start": {
"line": 12,
"column": 85
},
"end": {
"line": 12,
"column": 97
}
}
},
"range": [
618,
638
],
"loc": {
"start": {
"line": 12,
"column": 78
},
"end": {
"line": 12,
"column": 98
}
}
}
],
"range": [
616,
640
],
"loc": {
"start": {
"line": 12,
"column": 76
},
"end": {
"line": 12,
"column": 100
}
}
},
"generator": false,
"expression": false,
"range": [
603,
640
],
"loc": {
"start": {
"line": 12,
"column": 63
},
"end": {
"line": 12,
"column": 100
}
}
}
],
"range": [
565,
641
],
"loc": {
"start": {
"line": 12,
"column": 25
},
"end": {
"line": 12,
"column": 101
}
}
},
"range": [
552,
641
],
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 101
}
}
}
],
"kind": "var",
"range": [
548,
642
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 102
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "subscription",
"range": [
655,
667
],
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 24
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "subscribeToResult_1",
"range": [
670,
689
],
"loc": {
"start": {
"line": 13,
"column": 27
},
"end": {
"line": 13,
"column": 46
}
}
},
"property": {
"type": "Identifier",
"name": "subscribeToResult",
"range": [
690,
707
],
"loc": {
"start": {
"line": 13,
"column": 47
},
"end": {
"line": 13,
"column": 64
}
}
},
"range": [
670,
707
],
"loc": {
"start": {
"line": 13,
"column": 27
},
"end": {
"line": 13,
"column": 64
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "subscriber",
"range": [
708,
718
],
"loc": {
"start": {
"line": 13,
"column": 65
},
"end": {
"line": 13,
"column": 75
}
}
},
{
"type": "Identifier",
"name": "result",
"range": [
720,
726
],
"loc": {
"start": {
"line": 13,
"column": 77
},
"end": {
"line": 13,
"column": 83
}
}
}
],
"range": [
670,
727
],
"loc": {
"start": {
"line": 13,
"column": 27
},
"end": {
"line": 13,
"column": 84
}
}
},
"range": [
655,
727
],
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 84
}
}
}
],
"kind": "var",
"range": [
651,
728
],