@reactivex/rxjs
Version:
Reactive Extensions for modern JavaScript
1,296 lines (1,295 loc) • 424 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": "MapPolyfill_1",
"range": [
48,
61
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 17
}
}
},
"init": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "require",
"range": [
64,
71
],
"loc": {
"start": {
"line": 3,
"column": 20
},
"end": {
"line": 3,
"column": 27
}
}
},
"arguments": [
{
"type": "Literal",
"value": "../../dist/cjs/util/MapPolyfill",
"raw": "'../../dist/cjs/util/MapPolyfill'",
"range": [
72,
105
],
"loc": {
"start": {
"line": 3,
"column": 28
},
"end": {
"line": 3,
"column": 61
}
}
}
],
"range": [
64,
106
],
"loc": {
"start": {
"line": 3,
"column": 20
},
"end": {
"line": 3,
"column": 62
}
}
},
"range": [
48,
106
],
"loc": {
"start": {
"line": 3,
"column": 4
},
"end": {
"line": 3,
"column": 62
}
}
}
],
"kind": "var",
"range": [
44,
107
],
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 63
}
},
"trailingComments": [
{
"type": "Block",
"value": "* @test {MapPolyfill} ",
"range": [
108,
134
],
"loc": {
"start": {
"line": 4,
"column": 0
},
"end": {
"line": 4,
"column": 26
}
}
}
]
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "describe",
"range": [
135,
143
],
"loc": {
"start": {
"line": 5,
"column": 0
},
"end": {
"line": 5,
"column": 8
}
}
},
"arguments": [
{
"type": "Literal",
"value": "MapPolyfill",
"raw": "'MapPolyfill'",
"range": [
144,
157
],
"loc": {
"start": {
"line": 5,
"column": 9
},
"end": {
"line": 5,
"column": 22
}
}
},
{
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "it",
"range": [
177,
179
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 6,
"column": 6
}
}
},
"arguments": [
{
"type": "Literal",
"value": "should exist",
"raw": "'should exist'",
"range": [
180,
194
],
"loc": {
"start": {
"line": 6,
"column": 7
},
"end": {
"line": 6,
"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": [
218,
224
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 14
}
}
},
"property": {
"type": "Identifier",
"name": "expect",
"range": [
225,
231
],
"loc": {
"start": {
"line": 7,
"column": 15
},
"end": {
"line": 7,
"column": 21
}
}
},
"range": [
218,
231
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 21
}
}
},
"arguments": [
{
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "MapPolyfill_1",
"range": [
232,
245
],
"loc": {
"start": {
"line": 7,
"column": 22
},
"end": {
"line": 7,
"column": 35
}
}
},
"property": {
"type": "Identifier",
"name": "MapPolyfill",
"range": [
246,
257
],
"loc": {
"start": {
"line": 7,
"column": 36
},
"end": {
"line": 7,
"column": 47
}
}
},
"range": [
232,
257
],
"loc": {
"start": {
"line": 7,
"column": 22
},
"end": {
"line": 7,
"column": 47
}
}
}
],
"range": [
218,
258
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 48
}
}
},
"property": {
"type": "Identifier",
"name": "to",
"range": [
259,
261
],
"loc": {
"start": {
"line": 7,
"column": 49
},
"end": {
"line": 7,
"column": 51
}
}
},
"range": [
218,
261
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 51
}
}
},
"property": {
"type": "Identifier",
"name": "be",
"range": [
262,
264
],
"loc": {
"start": {
"line": 7,
"column": 52
},
"end": {
"line": 7,
"column": 54
}
}
},
"range": [
218,
264
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 54
}
}
},
"property": {
"type": "Identifier",
"name": "a",
"range": [
265,
266
],
"loc": {
"start": {
"line": 7,
"column": 55
},
"end": {
"line": 7,
"column": 56
}
}
},
"range": [
218,
266
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 56
}
}
},
"arguments": [
{
"type": "Literal",
"value": "function",
"raw": "'function'",
"range": [
267,
277
],
"loc": {
"start": {
"line": 7,
"column": 57
},
"end": {
"line": 7,
"column": 67
}
}
}
],
"range": [
218,
278
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 68
}
}
},
"range": [
218,
279
],
"loc": {
"start": {
"line": 7,
"column": 8
},
"end": {
"line": 7,
"column": 69
}
}
}
],
"range": [
208,
285
],
"loc": {
"start": {
"line": 6,
"column": 35
},
"end": {
"line": 8,
"column": 5
}
}
},
"generator": false,
"expression": false,
"range": [
196,
285
],
"loc": {
"start": {
"line": 6,
"column": 23
},
"end": {
"line": 8,
"column": 5
}
}
}
],
"range": [
177,
286
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 8,
"column": 6
}
},
"_esdocTestId": 2557,
"_esdocTestName": "it2557"
},
"range": [
177,
287
],
"loc": {
"start": {
"line": 6,
"column": 4
},
"end": {
"line": 8,
"column": 7
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "it",
"range": [
292,
294
],
"loc": {
"start": {
"line": 9,
"column": 4
},
"end": {
"line": 9,
"column": 6
}
}
},
"arguments": [
{
"type": "Literal",
"value": "should act like a hashtable that accepts objects as keys",
"raw": "'should act like a hashtable that accepts objects as keys'",
"range": [
295,
353
],
"loc": {
"start": {
"line": 9,
"column": 7
},
"end": {
"line": 9,
"column": 65
}
}
},
{
"type": "FunctionExpression",
"id": null,
"params": [],
"body": {
"type": "BlockStatement",
"body": [
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "map",
"range": [
381,
384
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 15
}
}
},
"init": {
"type": "NewExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "MapPolyfill_1",
"range": [
391,
404
],
"loc": {
"start": {
"line": 10,
"column": 22
},
"end": {
"line": 10,
"column": 35
}
}
},
"property": {
"type": "Identifier",
"name": "MapPolyfill",
"range": [
405,
416
],
"loc": {
"start": {
"line": 10,
"column": 36
},
"end": {
"line": 10,
"column": 47
}
}
},
"range": [
391,
416
],
"loc": {
"start": {
"line": 10,
"column": 22
},
"end": {
"line": 10,
"column": 47
}
}
},
"arguments": [],
"range": [
387,
418
],
"loc": {
"start": {
"line": 10,
"column": 18
},
"end": {
"line": 10,
"column": 49
}
}
},
"range": [
381,
418
],
"loc": {
"start": {
"line": 10,
"column": 12
},
"end": {
"line": 10,
"column": 49
}
}
}
],
"kind": "var",
"range": [
377,
419
],
"loc": {
"start": {
"line": 10,
"column": 8
},
"end": {
"line": 10,
"column": 50
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "key1",
"range": [
432,
436
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 16
}
}
},
"init": {
"type": "ObjectExpression",
"properties": [],
"range": [
439,
441
],
"loc": {
"start": {
"line": 11,
"column": 19
},
"end": {
"line": 11,
"column": 21
}
}
},
"range": [
432,
441
],
"loc": {
"start": {
"line": 11,
"column": 12
},
"end": {
"line": 11,
"column": 21
}
}
}
],
"kind": "var",
"range": [
428,
442
],
"loc": {
"start": {
"line": 11,
"column": 8
},
"end": {
"line": 11,
"column": 22
}
}
},
{
"type": "VariableDeclaration",
"declarations": [
{
"type": "VariableDeclarator",
"id": {
"type": "Identifier",
"name": "key2",
"range": [
455,
459
],
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 16
}
}
},
"init": {
"type": "ObjectExpression",
"properties": [],
"range": [
462,
464
],
"loc": {
"start": {
"line": 12,
"column": 19
},
"end": {
"line": 12,
"column": 21
}
}
},
"range": [
455,
464
],
"loc": {
"start": {
"line": 12,
"column": 12
},
"end": {
"line": 12,
"column": 21
}
}
}
],
"kind": "var",
"range": [
451,
465
],
"loc": {
"start": {
"line": 12,
"column": 8
},
"end": {
"line": 12,
"column": 22
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "map",
"range": [
474,
477
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 11
}
}
},
"property": {
"type": "Identifier",
"name": "set",
"range": [
478,
481
],
"loc": {
"start": {
"line": 13,
"column": 12
},
"end": {
"line": 13,
"column": 15
}
}
},
"range": [
474,
481
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 15
}
}
},
"arguments": [
{
"type": "Literal",
"value": "test",
"raw": "'test'",
"range": [
482,
488
],
"loc": {
"start": {
"line": 13,
"column": 16
},
"end": {
"line": 13,
"column": 22
}
}
},
{
"type": "Literal",
"value": "hi",
"raw": "'hi'",
"range": [
490,
494
],
"loc": {
"start": {
"line": 13,
"column": 24
},
"end": {
"line": 13,
"column": 28
}
}
}
],
"range": [
474,
495
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 29
}
}
},
"range": [
474,
496
],
"loc": {
"start": {
"line": 13,
"column": 8
},
"end": {
"line": 13,
"column": 30
}
}
},
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "MemberExpression",
"computed": false,
"object": {
"type": "Identifier",
"name": "map",
"range": [
505,
508
],
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 11
}
}
},
"property": {
"type": "Identifier",
"name": "set",
"range": [
509,
512
],
"loc": {
"start": {
"line": 14,
"column": 12
},
"end": {
"line": 14,
"column": 15
}
}
},
"range": [
505,
512
],
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 15
}
}
},
"arguments": [
{
"type": "Identifier",
"name": "key1",
"range": [
513,
517
],
"loc": {
"start": {
"line": 14,
"column": 16
},
"end": {
"line": 14,
"column": 20
}
}
},
{
"type": "Literal",
"value": "yo",
"raw": "'yo'",
"range": [
519,
523
],
"loc": {
"start": {
"line": 14,
"column": 22
},
"end": {
"line": 14,
"column": 26
}
}
}
],
"range": [
505,
524
],
"loc": {
"start": {
"line": 14,
"column": 8
},
"end": {
"line": 14,
"column": 27
}