@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,254 lines (1,253 loc) • 300 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,
77
],
"loc": {
"start": {
"line": 3,
"column": 17
},
"end": {
"line": 3,
"column": 33
}
}
}
],
"range": [
53,
78
],
"loc": {
"start": {
"line": 3,
"column": 9
},
"end": {
"line": 3,
"column": 34
}
}
},
"range": [
48,
78
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 34
}
}
}
],
"kind": "var",
"range": [
44,
79
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 35
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "Scheduler",
"range": [
84,
93
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 13
}
}
},
"init": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Rx",
"range": [
96,
98
],
"loc": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 4,
"column": 18
}
}
},
"property": {
"type": "Identifier",
"name": "Scheduler",
"range": [
99,
108
],
"loc": {
"start": {
"line": 4,
"column": 19
},
"end": {
"line": 4,
"column": 28
}
}
},
"range": [
96,
108
],
"loc": {
"start": {
"line": 4,
"column": 16
},
"end": {
"line": 4,
"column": 28
}
}
},
"range": [
84,
108
],
"loc": {
"start": {
"line": 4,
"column": 4
},
"end": {
"line": 4,
"column": 28
}
}
}
],
"kind": "var",
"range": [
80,
109
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 29
}
},
"trailingComments": [
{
"type": "Block",
"value": "* @test {Scheduler} ",
"range": [
110,
134
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 24
}
}
}
]
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "describe",
"range": [
135,
143
],
"loc": {
"start": {
"line": 6,
"column": 0
},
"end": {
"line": 6,
"column": 8
}
}
},
"arguments": [
{
"type": "Literal",
"value": "Scheduler.queue",
"raw": "'Scheduler.queue'",
"range": [
144,
161
],
"loc": {
"start": {
"line": 6,
"column": 9
},
"end": {
"line": 6,
"column": 26
}
}
},
{
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "it",
"range": [
181,
183
],
"loc": {
"start": {
"line": 7,
"column": 4
},
"end": {
"line": 7,
"column": 6
}
}
},
"arguments": [
{
"type": "Literal",
"value": "should schedule things recursively",
"raw": "'should schedule things recursively'",
"range": [
184,
220
],
"loc": {
"start": {
"line": 7,
"column": 7
},
"end": {
"line": 7,
"column": 43
}
}
},
{
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "call1",
"range": [
248,
253
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 17
}
}
},
"init": {
"type": "Literal",
"value": false,
"raw": "false",
"range": [
256,
261
],
"loc": {
"start": {
"line": 8,
"column": 20
},
"end": {
"line": 8,
"column": 25
}
}
},
"range": [
248,
261
],
"loc": {
"start": {
"line": 8,
"column": 12
},
"end": {
"line": 8,
"column": 25
}
}
}
],
"kind": "var",
"range": [
244,
262
],
"loc": {
"start": {
"line": 8,
"column": 8
},
"end": {
"line": 8,
"column": 26
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "call2",
"range": [
275,
280
],
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 17
}
}
},
"init": {
"type": "Literal",
"value": false,
"raw": "false",
"range": [
283,
288
],
"loc": {
"start": {
"line": 9,
"column": 20
},
"end": {
"line": 9,
"column": 25
}
}
},
"range": [
275,
288
],
"loc": {
"start": {
"line": 9,
"column": 12
},
"end": {
"line": 9,
"column": 25
}
}
}
],
"kind": "var",
"range": [
271,
289
],
"loc": {
"start": {
"line": 9,
"column": 8
},
"end": {
"line": 9,
"column": 26
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Scheduler",
"range": [
298,
307
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 17
}
}
},
"property": {
"type": "Identifier",
"name": "queue",
"range": [
308,
313
],
"loc": {
"start": {
"line": 10,
"column": 18
},
"end": {
"line": 10,
"column": 23
}
}
},
"range": [
298,
313
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 23
}
}
},
"property": {
"type": "Identifier",
"name": "active",
"range": [
314,
320
],
"loc": {
"start": {
"line": 10,
"column": 24
},
"end": {
"line": 10,
"column": 30
}
}
},
"range": [
298,
320
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 30
}
}
},
"right": {
"type": "Literal",
"value": false,
"raw": "false",
"range": [
323,
328
],
"loc": {
"start": {
"line": 10,
"column": 33
},
"end": {
"line": 10,
"column": 38
}
}
},
"range": [
298,
328
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 38
}
}
},
"range": [
298,
329
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 39
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Scheduler",
"range": [
338,
347
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 17
}
}
},
"property": {
"type": "Identifier",
"name": "queue",
"range": [
348,
353
],
"loc": {
"start": {
"line": 11,
"column": 18
},
"end": {
"line": 11,
"column": 23
}
}
},
"range": [
338,
353
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 23
}
}
},
"property": {
"type": "Identifier",
"name": "schedule",
"range": [
354,
362
],
"loc": {
"start": {
"line": 11,
"column": 24
},
"end": {
"line": 11,
"column": 32
}
}
},
"range": [
338,
362
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 32
}
}
},
"arguments": [
{
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "call1",
"range": [
389,
394
],
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 17
}
}
},
"right": {
"type": "Literal",
"value": true,
"raw": "true",
"range": [
397,
401
],
"loc": {
"start": {
"line": 12,
"column": 20
},
"end": {
"line": 12,
"column": 24
}
}
},
"range": [
389,
401
],
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 24
}
}
},
"range": [
389,
402
],
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 25
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "Scheduler",
"range": [
415,
424
],
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 21
}
}
},
"property": {
"type": "Identifier",
"name": "queue",
"range": [
425,
430
],
"loc": {
"start": {
"line": 13,
"column": 22
},
"end": {
"line": 13,
"column": 27
}
}
},
"range": [
415,
430
],
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 27
}
}
},
"property": {
"type": "Identifier",
"name": "schedule",
"range": [
431,
439
],
"loc": {
"start": {
"line": 13,
"column": 28
},
"end": {
"line": 13,
"column": 36
}
}
},
"range": [
415,
439
],
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 36
}
}
},
"arguments": [
{
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "AssignmentExpression",
"operator": "=",
"left": {
"type": "Identifier",
"name": "call2",
"range": [
470,
475
],
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 21
}
}
},
"right": {
"type": "Literal",
"value": true,
"raw": "true",
"range": [
478,
482
],
"loc": {
"start": {
"line": 14,
"column": 24
},
"end": {
"line": 14,
"column": 28
}
}
},
"range": [
470,
482
],
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 28
}
}
},
"range": [
470,
483
],
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 29
}
}
}
],
"range": [
452,
497
],
"loc": {
"start": {
"line": 13,
"column": 49
},
"end": {
"line": 15,
"column": 13
}
}
},
"generator": false,
"expression": false,
"range": [
440,
497
],
"loc": {
"start": {
"line": 13,
"column": 37
},
"end": {
"line": 15,
"column": 13
}
}
}
],
"range": [
415,
498
],
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 15,
"column": 14
}
}
},
"range": [
415,
499
],
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 15,
"column": 15
}
}
}
],
"range": [
375,
509
],
"loc": {
"start": {
"line": 11,
"column": 45
},
"end": {
"line": 16,
"column": 9
}
}
},
"generator": false,
"expression": false,
"range": [
363,
509
],
"loc": {
"start": {
"line": 11,
"column": 33
},
"end": {
"line": 16,
"column": 9
}
}
}
],
"range": [
338,
510
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 16,
"column": 10
}
}
},
"range": [
338,
511
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 16,
"column": 11