mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
test: update test426-fixtures to 9ea66b466fd37e8a4050033d23b3e1480973c3d
PR-URL: https://github.com/nodejs/node/pull/66493 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
This commit is contained in:
1 parent
49d89fa70b
commit
71435c20da
35 files changed
+858
-553
No files matched your search
@@ -1,5 +1,8 @@
|
||||
## Test cases
|
||||
|
||||
These file were copied from https://github.com/tc39/source-map-tests/blob/main/decoding/scopes
|
||||
and modified to match changes in the source maps specification.
|
||||
|
||||
- **empty-scopes-field**: Empty original scopes field
|
||||
- **nil-scopes**: Multiple null original scopes
|
||||
- **close-start-end-position-scopes**: Scopes with very close start and end
|
||||
|
||||
@@ -6,5 +6,5 @@
|
||||
],
|
||||
"mappings": "",
|
||||
"names": [],
|
||||
"scopes": "BAAA,BAAA,CAB,BAAA,CAB,BAAB,CAC,CBA"
|
||||
}
|
||||
"scopes": ["BAAA,BAAA,CAB,BAAA,CAB,BAAB,CAC,CBA"]
|
||||
}
|
||||
+60
-58
@@ -6,68 +6,70 @@
|
||||
"url": "original_0.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"scope": {
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": null,
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 0,
|
||||
"column": 1
|
||||
},
|
||||
"name": null,
|
||||
"kind": null,
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
"rootScopes": [
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 1
|
||||
},
|
||||
"end": {
|
||||
"line": 0,
|
||||
"column": 2
|
||||
},
|
||||
"name": null,
|
||||
"kind": null,
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 3
|
||||
"name": null,
|
||||
"kind": null,
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 0,
|
||||
"column": 1
|
||||
},
|
||||
"name": null,
|
||||
"kind": null,
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
},
|
||||
"end": {
|
||||
"line": 0,
|
||||
"column": 5
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 1
|
||||
},
|
||||
"end": {
|
||||
"line": 0,
|
||||
"column": 2
|
||||
},
|
||||
"name": null,
|
||||
"kind": null,
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
},
|
||||
"name": null,
|
||||
"kind": null,
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 3
|
||||
},
|
||||
"end": {
|
||||
"line": 0,
|
||||
"column": 5
|
||||
},
|
||||
"name": null,
|
||||
"kind": null,
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ranges": []
|
||||
}
|
||||
}
|
||||
@@ -4,5 +4,5 @@
|
||||
"sources": [],
|
||||
"mappings": "",
|
||||
"names": [],
|
||||
"scopes": ""
|
||||
}
|
||||
"scopes": []
|
||||
}
|
||||
@@ -3,4 +3,4 @@
|
||||
"mappings": [],
|
||||
"sources": [],
|
||||
"ranges": []
|
||||
}
|
||||
}
|
||||
+3
-2
@@ -9,5 +9,6 @@
|
||||
"global",
|
||||
"block"
|
||||
],
|
||||
"scopes": "BCAAA,BCBAC,CEA,CFA,ECAA,EPBAC,FEA,FFA"
|
||||
}
|
||||
"scopes": ["BCAAA,BCBAC,CEA,CFA"],
|
||||
"ranges": ["ECAAA,EPBAAC,FEA,FFA"]
|
||||
}
|
||||
+42
-34
@@ -6,37 +6,39 @@
|
||||
"url": "original_0.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"scope": {
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "block",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
"rootScopes": [
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "block",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ranges": [
|
||||
@@ -49,7 +51,10 @@
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"definitionIndex": 0,
|
||||
"definition": {
|
||||
"source": 0,
|
||||
"scope": 0
|
||||
},
|
||||
"stackFrameType": "none",
|
||||
"callSite": null,
|
||||
"bindings": [],
|
||||
@@ -63,7 +68,10 @@
|
||||
"line": 5,
|
||||
"column": 0
|
||||
},
|
||||
"definitionIndex": 1,
|
||||
"definition": {
|
||||
"source": 0,
|
||||
"scope": 1
|
||||
},
|
||||
"stackFrameType": "hidden",
|
||||
"callSite": null,
|
||||
"bindings": [],
|
||||
@@ -72,4 +80,4 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"version": 3,
|
||||
"file": "multiple-root-original-scopes-in-one-file.js",
|
||||
"sources": [
|
||||
"original_0.js"
|
||||
],
|
||||
"mappings": "",
|
||||
"names": [
|
||||
"global",
|
||||
"henry",
|
||||
"synth",
|
||||
"synth=",
|
||||
"value"
|
||||
],
|
||||
"scopes": ["BDAACA,CKA,BCBAA,CtSA,BCkDKA,CAe,BHAACA,CAA,BHAACA,DI,CAA"]
|
||||
}
|
||||
+89
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"file": "multiple-root-original-scopes-in-one-file.js",
|
||||
"mappings": [],
|
||||
"sources": [
|
||||
{
|
||||
"url": "original_0.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"rootScopes": [
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": "henry",
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"start": {
|
||||
"line": 11,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 600,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"start": {
|
||||
"line": 700,
|
||||
"column": 10
|
||||
},
|
||||
"end": {
|
||||
"line": 700,
|
||||
"column": 40
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"start": {
|
||||
"line": 700,
|
||||
"column": 40
|
||||
},
|
||||
"end": {
|
||||
"line": 700,
|
||||
"column": 40
|
||||
},
|
||||
"name": "synth",
|
||||
"kind": "global",
|
||||
"isStackFrame": true,
|
||||
"variables": [],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"start": {
|
||||
"line": 700,
|
||||
"column": 40
|
||||
},
|
||||
"end": {
|
||||
"line": 700,
|
||||
"column": 40
|
||||
},
|
||||
"name": "synth=",
|
||||
"kind": "global",
|
||||
"isStackFrame": true,
|
||||
"variables": ["value"],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ranges": []
|
||||
}
|
||||
+2
-2
@@ -10,5 +10,5 @@
|
||||
"names": [
|
||||
"global"
|
||||
],
|
||||
"scopes": "BCAAA,CKA,A,BCAAA,CKA"
|
||||
}
|
||||
"scopes": ["BCAAA,CKA", null, "BCAAA,CKA"]
|
||||
}
|
||||
+36
-32
@@ -6,48 +6,52 @@
|
||||
"url": "original_0.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"scope": {
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
"rootScopes": [
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"url": "original_1.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"scope": null
|
||||
"rootScopes": []
|
||||
},
|
||||
{
|
||||
"url": "original_2.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"scope": {
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
"rootScopes": [
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ranges": []
|
||||
}
|
||||
}
|
||||
+3
-2
@@ -10,5 +10,6 @@
|
||||
"foo",
|
||||
"function"
|
||||
],
|
||||
"scopes": "BCAAA,BHBACE,CEA,CFA,ECAA,EGCC,FC,FG"
|
||||
}
|
||||
"scopes": ["BCAAA,BHBACE,CEA,CFA"],
|
||||
"ranges": ["ECAAA,EGCAC,FC,FG"]
|
||||
}
|
||||
+42
-34
@@ -6,37 +6,39 @@
|
||||
"url": "original_0.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"scope": {
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 0
|
||||
},
|
||||
"name": "foo",
|
||||
"kind": "function",
|
||||
"isStackFrame": true,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
"rootScopes": [
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 0
|
||||
},
|
||||
"name": "foo",
|
||||
"kind": "function",
|
||||
"isStackFrame": true,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ranges": [
|
||||
@@ -49,7 +51,10 @@
|
||||
"line": 0,
|
||||
"column": 10
|
||||
},
|
||||
"definitionIndex": 0,
|
||||
"definition": {
|
||||
"source": 0,
|
||||
"scope": 0
|
||||
},
|
||||
"stackFrameType": "none",
|
||||
"callSite": null,
|
||||
"bindings": [],
|
||||
@@ -63,7 +68,10 @@
|
||||
"line": 0,
|
||||
"column": 4
|
||||
},
|
||||
"definitionIndex": 1,
|
||||
"definition": {
|
||||
"source": 0,
|
||||
"scope": 1
|
||||
},
|
||||
"stackFrameType": "original",
|
||||
"callSite": null,
|
||||
"bindings": [],
|
||||
@@ -72,4 +80,4 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -10,5 +10,5 @@
|
||||
"innerOriginalFunction",
|
||||
"block"
|
||||
],
|
||||
"scopes": "BAAA,BFKAA,BFFCC,BCFEE,CFE,CBC,CBA,CBA"
|
||||
}
|
||||
"scopes": ["BAAA,BFKAA,BFFCC,BCFEE,CFE,CBC,CBA,CBA"]
|
||||
}
|
||||
+66
-64
@@ -6,70 +6,72 @@
|
||||
"url": "original_0.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"scope": {
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 28,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": null,
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 27,
|
||||
"column": 0
|
||||
},
|
||||
"name": "originalFunctionFoo",
|
||||
"kind": null,
|
||||
"isStackFrame": true,
|
||||
"variables": [],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 15,
|
||||
"column": 2
|
||||
},
|
||||
"end": {
|
||||
"line": 26,
|
||||
"column": 2
|
||||
},
|
||||
"name": "innerOriginalFunction",
|
||||
"kind": null,
|
||||
"isStackFrame": true,
|
||||
"variables": [],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 20,
|
||||
"column": 4
|
||||
},
|
||||
"end": {
|
||||
"line": 25,
|
||||
"column": 4
|
||||
},
|
||||
"name": null,
|
||||
"kind": "block",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
"rootScopes": [
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 28,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": null,
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 27,
|
||||
"column": 0
|
||||
},
|
||||
"name": "originalFunctionFoo",
|
||||
"kind": null,
|
||||
"isStackFrame": true,
|
||||
"variables": [],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 15,
|
||||
"column": 2
|
||||
},
|
||||
"end": {
|
||||
"line": 26,
|
||||
"column": 2
|
||||
},
|
||||
"name": "innerOriginalFunction",
|
||||
"kind": null,
|
||||
"isStackFrame": true,
|
||||
"variables": [],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 20,
|
||||
"column": 4
|
||||
},
|
||||
"end": {
|
||||
"line": 25,
|
||||
"column": 4
|
||||
},
|
||||
"name": null,
|
||||
"kind": "block",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ranges": []
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -9,5 +9,5 @@
|
||||
],
|
||||
"mappings": "",
|
||||
"names": [],
|
||||
"scopes": "A,A,A,A"
|
||||
}
|
||||
"scopes": [null, null, null, null]
|
||||
}
|
||||
@@ -6,26 +6,26 @@
|
||||
"url": "original_0.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"scope": null
|
||||
"rootScopes": []
|
||||
},
|
||||
{
|
||||
"url": "original_1.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"scope": null
|
||||
"rootScopes": []
|
||||
},
|
||||
{
|
||||
"url": "original_2.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"scope": null
|
||||
"rootScopes": []
|
||||
},
|
||||
{
|
||||
"url": "original_3.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"scope": null
|
||||
"rootScopes": []
|
||||
}
|
||||
],
|
||||
"ranges": []
|
||||
}
|
||||
}
|
||||
@@ -10,5 +10,6 @@
|
||||
"inlineMe",
|
||||
"function"
|
||||
],
|
||||
"scopes": "BCAAA,BHBACE,CEA,CFA,ECAA,EDBAC,IAGC,FK,FJA"
|
||||
}
|
||||
"scopes": ["BCAAA,BHBACE,CEA,CFA"],
|
||||
"ranges": ["ECAAA,EDBAAC,IAGC,FK,FJA"]
|
||||
}
|
||||
@@ -6,37 +6,39 @@
|
||||
"url": "original_0.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"scope": {
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 0
|
||||
},
|
||||
"name": "inlineMe",
|
||||
"kind": "function",
|
||||
"isStackFrame": true,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
"rootScopes": [
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 0
|
||||
},
|
||||
"name": "inlineMe",
|
||||
"kind": "function",
|
||||
"isStackFrame": true,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ranges": [
|
||||
@@ -49,7 +51,10 @@
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"definitionIndex": 0,
|
||||
"definition": {
|
||||
"source": 0,
|
||||
"scope": 0
|
||||
},
|
||||
"stackFrameType": "none",
|
||||
"callSite": null,
|
||||
"bindings": [],
|
||||
@@ -63,7 +68,10 @@
|
||||
"line": 1,
|
||||
"column": 10
|
||||
},
|
||||
"definitionIndex": 1,
|
||||
"definition": {
|
||||
"source": 0,
|
||||
"scope": 1
|
||||
},
|
||||
"stackFrameType": "none",
|
||||
"callSite": {
|
||||
"sourceIndex": 0,
|
||||
@@ -76,4 +84,4 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
+3
-2
@@ -16,5 +16,6 @@
|
||||
"z_val",
|
||||
"a_val"
|
||||
],
|
||||
"scopes": "BCAAA,DCCC,BCBAI,DE,CEA,CFA,ECAA,GHAI,ECCC,GJ,FC,FG"
|
||||
}
|
||||
"scopes": ["BCAAA,DCCC,BCBAI,DE,CEA,CFA"],
|
||||
"ranges": ["ECAAA,GHAI,ECCAC,GJ,FC,FG"]
|
||||
}
|
||||
+48
-40
@@ -6,43 +6,45 @@
|
||||
"url": "original_0.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"scope": {
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [
|
||||
"x",
|
||||
"y",
|
||||
"z"
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "block",
|
||||
"isStackFrame": false,
|
||||
"variables": [
|
||||
"a"
|
||||
],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
"rootScopes": [
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [
|
||||
"x",
|
||||
"y",
|
||||
"z"
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "block",
|
||||
"isStackFrame": false,
|
||||
"variables": [
|
||||
"a"
|
||||
],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ranges": [
|
||||
@@ -55,7 +57,10 @@
|
||||
"line": 0,
|
||||
"column": 10
|
||||
},
|
||||
"definitionIndex": 0,
|
||||
"definition": {
|
||||
"source": 0,
|
||||
"scope": 0
|
||||
},
|
||||
"stackFrameType": "none",
|
||||
"callSite": null,
|
||||
"bindings": [
|
||||
@@ -97,7 +102,10 @@
|
||||
"line": 0,
|
||||
"column": 4
|
||||
},
|
||||
"definitionIndex": 1,
|
||||
"definition": {
|
||||
"source": 0,
|
||||
"scope": 1
|
||||
},
|
||||
"stackFrameType": "none",
|
||||
"callSite": null,
|
||||
"bindings": [
|
||||
@@ -116,4 +124,4 @@
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -19,5 +19,7 @@
|
||||
"blockScopedVariable1",
|
||||
"blockScopedVariable2"
|
||||
],
|
||||
"scopes": "BCAAA,DCC,BHKFGI,DGCC,CJB,BHGFKA,DF,BCBIK,DKC,CDF,CBB,CBA"
|
||||
}
|
||||
"scopes": [
|
||||
"BCAAA,DCC,BHKFGI,DGCC,CJB,BHGFKA,DF,BCBIK,DKC,CDF,CBB,CBA"
|
||||
]
|
||||
}
|
||||
@@ -6,81 +6,83 @@
|
||||
"url": "original_0.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"scope": {
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 31,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [
|
||||
"GLOBAL_CONSTANT1",
|
||||
"GLOBAL_CONSTANT2"
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 10,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 19,
|
||||
"column": 1
|
||||
},
|
||||
"name": "toplevelFunction1",
|
||||
"kind": "function",
|
||||
"isStackFrame": true,
|
||||
"variables": [
|
||||
"functionScopedVariable1",
|
||||
"functionScopedVariable2",
|
||||
"functionScopedVariable3"
|
||||
],
|
||||
"children": []
|
||||
"rootScopes": [
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
{
|
||||
"start": {
|
||||
"line": 25,
|
||||
"column": 5
|
||||
"end": {
|
||||
"line": 31,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [
|
||||
"GLOBAL_CONSTANT1",
|
||||
"GLOBAL_CONSTANT2"
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 10,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 19,
|
||||
"column": 1
|
||||
},
|
||||
"name": "toplevelFunction1",
|
||||
"kind": "function",
|
||||
"isStackFrame": true,
|
||||
"variables": [
|
||||
"functionScopedVariable1",
|
||||
"functionScopedVariable2",
|
||||
"functionScopedVariable3"
|
||||
],
|
||||
"children": []
|
||||
},
|
||||
"end": {
|
||||
"line": 30,
|
||||
"column": 1
|
||||
},
|
||||
"name": "toplevelFunction2",
|
||||
"kind": "function",
|
||||
"isStackFrame": true,
|
||||
"variables": [
|
||||
"functionScopedVariable1"
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 26,
|
||||
"column": 8
|
||||
},
|
||||
"end": {
|
||||
"line": 29,
|
||||
"column": 5
|
||||
},
|
||||
"name": null,
|
||||
"kind": "block",
|
||||
"isStackFrame": false,
|
||||
"variables": [
|
||||
"blockScopedVariable1",
|
||||
"blockScopedVariable2"
|
||||
],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
"start": {
|
||||
"line": 25,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 30,
|
||||
"column": 1
|
||||
},
|
||||
"name": "toplevelFunction2",
|
||||
"kind": "function",
|
||||
"isStackFrame": true,
|
||||
"variables": [
|
||||
"functionScopedVariable1"
|
||||
],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 26,
|
||||
"column": 8
|
||||
},
|
||||
"end": {
|
||||
"line": 29,
|
||||
"column": 5
|
||||
},
|
||||
"name": null,
|
||||
"kind": "block",
|
||||
"isStackFrame": false,
|
||||
"variables": [
|
||||
"blockScopedVariable1",
|
||||
"blockScopedVariable2"
|
||||
],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ranges": []
|
||||
}
|
||||
}
|
||||
+13
-6
@@ -6,7 +6,7 @@ interface SourceMapRecord {
|
||||
}
|
||||
|
||||
interface SourceRecord {
|
||||
scope: OriginalScopeRecord|null;
|
||||
rootScopes: OriginalScopeRecord[];
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -28,17 +28,24 @@ interface OriginalScopeRecord {
|
||||
interface GeneratedRangeRecord {
|
||||
start: PositionRecord;
|
||||
end: PositionRecord;
|
||||
/**
|
||||
* An index into a flattened list of {@link OriginalScopeRecord}. The flattened list is obtained by iterating
|
||||
* {@link SourceMapRecord.sources} from `0` to `SourceMapRecord.sources.length` and traverse each {@link SourceRecord.scope} in [pre-order](https://en.wikipedia.org/wiki/Tree_traversal#Pre-order,_NLR).
|
||||
*/
|
||||
definitionIndex: number|null;
|
||||
definition: DefinitionRecord|null;
|
||||
stackFrameType: 'none'|'original'|'hidden';
|
||||
bindings: BindingRecord[][];
|
||||
callSite: OriginalPositionRecord|null;
|
||||
children: GeneratedRangeRecord[];
|
||||
}
|
||||
|
||||
interface DefinitionRecord {
|
||||
/** An index into {@link SourceMapRecord.sources}. */
|
||||
source: number;
|
||||
/**
|
||||
* An index into a flattened list of {@link OriginalScopeRecord} in the {@link SourceRecord} at `source`.
|
||||
* The flattened list is obtained by iterating {@link SourceRecord.rootScopes} from `0` to `SourceRecord.rootScopes.length`
|
||||
* and traversing each {@link OriginalScopeRecord} in [pre-order](https://en.wikipedia.org/wiki/Tree_traversal#Pre-order,_NLR).
|
||||
*/
|
||||
scope: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Corresponds to a [Binding Record](https://tc39.es/ecma426/branch/proposal-scopes/#sec-binding-record-type)
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"version": 3,
|
||||
"file": "sibling-ranges.js",
|
||||
"sources": [
|
||||
"original_0.js",
|
||||
"original_1.js"
|
||||
],
|
||||
"mappings": "",
|
||||
"names": [
|
||||
"global"
|
||||
],
|
||||
"scopes": ["BCAAA,CKA","BCKAA,CKA"],
|
||||
"ranges": ["ECAAA,FK","EDKACA,FK","EBUAA,FK"]
|
||||
}
|
||||
@@ -0,0 +1,103 @@
|
||||
{
|
||||
"file": "sibling-ranges.js",
|
||||
"mappings": [],
|
||||
"sources": [
|
||||
{
|
||||
"url": "original_0.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"rootScopes": [
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"url": "original_1.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"rootScopes": [
|
||||
{
|
||||
"start": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 20,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ranges": [
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 0,
|
||||
"column": 10
|
||||
},
|
||||
"definition": {
|
||||
"source": 0,
|
||||
"scope": 0
|
||||
},
|
||||
"stackFrameType": "none",
|
||||
"callSite": null,
|
||||
"bindings": [],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"start": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 10
|
||||
},
|
||||
"definition": {
|
||||
"source": 1,
|
||||
"scope": 0
|
||||
},
|
||||
"stackFrameType": "none",
|
||||
"callSite": null,
|
||||
"bindings": [],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"start": {
|
||||
"line": 20,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 20,
|
||||
"column": 10
|
||||
},
|
||||
"definition": null,
|
||||
"stackFrameType": "none",
|
||||
"callSite": null,
|
||||
"bindings": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -9,5 +9,6 @@
|
||||
"names": [
|
||||
"global"
|
||||
],
|
||||
"scopes": "BCAAA,CKA,BCKAA,CKA,ECAA,FK,EDKAC,FK,EBKA,FK"
|
||||
}
|
||||
"scopes": ["BCAAA,CKA","BCKAA,CKA"],
|
||||
"ranges": ["ECAAA,FK,EDKACA,FK,EBKAA,FK"]
|
||||
}
|
||||
+44
-34
@@ -6,41 +6,45 @@
|
||||
"url": "original_0.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"scope": {
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
"rootScopes": [
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"url": "original_1.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"scope": {
|
||||
"start": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 20,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
"rootScopes": [
|
||||
{
|
||||
"start": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 20,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ranges": [
|
||||
@@ -53,7 +57,10 @@
|
||||
"line": 0,
|
||||
"column": 10
|
||||
},
|
||||
"definitionIndex": 0,
|
||||
"definition": {
|
||||
"source": 0,
|
||||
"scope": 0
|
||||
},
|
||||
"stackFrameType": "none",
|
||||
"callSite": null,
|
||||
"bindings": [],
|
||||
@@ -68,7 +75,10 @@
|
||||
"line": 10,
|
||||
"column": 10
|
||||
},
|
||||
"definitionIndex": 1,
|
||||
"definition": {
|
||||
"source": 1,
|
||||
"scope": 0
|
||||
},
|
||||
"stackFrameType": "none",
|
||||
"callSite": null,
|
||||
"bindings": [],
|
||||
@@ -83,11 +93,11 @@
|
||||
"line": 20,
|
||||
"column": 10
|
||||
},
|
||||
"definitionIndex": null,
|
||||
"definition": null,
|
||||
"stackFrameType": "none",
|
||||
"callSite": null,
|
||||
"bindings": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -12,5 +12,5 @@
|
||||
"toplevelFunction3",
|
||||
"toplevelFunction4"
|
||||
],
|
||||
"scopes": "BAAA,BHKFAC,CIB,BHCFEA,CIB,BHCFCA,CIB,BHCFCA,CIB,CCA"
|
||||
}
|
||||
"scopes": ["BAAA,BHKFAC,CIB,BHCFEA,CIB,BHCFCA,CIB,BHCFCA,CIB,CCA"]
|
||||
}
|
||||
+74
-72
@@ -6,83 +6,85 @@
|
||||
"url": "original_0.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"scope": {
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 50,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": null,
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 10,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 18,
|
||||
"column": 1
|
||||
},
|
||||
"name": "toplevelFunction1",
|
||||
"kind": "function",
|
||||
"isStackFrame": true,
|
||||
"variables": [],
|
||||
"children": []
|
||||
"rootScopes": [
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
{
|
||||
"start": {
|
||||
"line": 20,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 28,
|
||||
"column": 1
|
||||
},
|
||||
"name": "toplevelFunction2",
|
||||
"kind": "function",
|
||||
"isStackFrame": true,
|
||||
"variables": [],
|
||||
"children": []
|
||||
"end": {
|
||||
"line": 50,
|
||||
"column": 0
|
||||
},
|
||||
{
|
||||
"start": {
|
||||
"line": 30,
|
||||
"column": 5
|
||||
"name": null,
|
||||
"kind": null,
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": [
|
||||
{
|
||||
"start": {
|
||||
"line": 10,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 18,
|
||||
"column": 1
|
||||
},
|
||||
"name": "toplevelFunction1",
|
||||
"kind": "function",
|
||||
"isStackFrame": true,
|
||||
"variables": [],
|
||||
"children": []
|
||||
},
|
||||
"end": {
|
||||
"line": 38,
|
||||
"column": 1
|
||||
{
|
||||
"start": {
|
||||
"line": 20,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 28,
|
||||
"column": 1
|
||||
},
|
||||
"name": "toplevelFunction2",
|
||||
"kind": "function",
|
||||
"isStackFrame": true,
|
||||
"variables": [],
|
||||
"children": []
|
||||
},
|
||||
"name": "toplevelFunction3",
|
||||
"kind": "function",
|
||||
"isStackFrame": true,
|
||||
"variables": [],
|
||||
"children": []
|
||||
},
|
||||
{
|
||||
"start": {
|
||||
"line": 40,
|
||||
"column": 5
|
||||
{
|
||||
"start": {
|
||||
"line": 30,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 38,
|
||||
"column": 1
|
||||
},
|
||||
"name": "toplevelFunction3",
|
||||
"kind": "function",
|
||||
"isStackFrame": true,
|
||||
"variables": [],
|
||||
"children": []
|
||||
},
|
||||
"end": {
|
||||
"line": 48,
|
||||
"column": 1
|
||||
},
|
||||
"name": "toplevelFunction4",
|
||||
"kind": "function",
|
||||
"isStackFrame": true,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
"start": {
|
||||
"line": 40,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 48,
|
||||
"column": 1
|
||||
},
|
||||
"name": "toplevelFunction4",
|
||||
"kind": "function",
|
||||
"isStackFrame": true,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ranges": []
|
||||
}
|
||||
}
|
||||
@@ -8,5 +8,6 @@
|
||||
"names": [
|
||||
"global"
|
||||
],
|
||||
"scopes": "BCAAA,CKA,ECAA,FK"
|
||||
}
|
||||
"scopes": ["BCAAA,CKA"],
|
||||
"ranges": ["ECAAA,FK"]
|
||||
}
|
||||
+22
-17
@@ -6,21 +6,23 @@
|
||||
"url": "original_0.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"scope": {
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
"rootScopes": [
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ranges": [
|
||||
@@ -33,11 +35,14 @@
|
||||
"line": 0,
|
||||
"column": 10
|
||||
},
|
||||
"definitionIndex": 0,
|
||||
"definition": {
|
||||
"source": 0,
|
||||
"scope": 0
|
||||
},
|
||||
"stackFrameType": "none",
|
||||
"callSite": null,
|
||||
"bindings": [],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -13,5 +13,6 @@
|
||||
"y_val",
|
||||
"x_sub_val2"
|
||||
],
|
||||
"scopes": "BCAAA,DCC,CKA,ECAA,GEF,HAADAADG,FK"
|
||||
}
|
||||
"scopes": ["BCAAA,DCC,CKA"],
|
||||
"ranges": ["ECAAA,GEF,HAADAADG,FK"]
|
||||
}
|
||||
@@ -6,24 +6,26 @@
|
||||
"url": "original_0.js",
|
||||
"content": null,
|
||||
"ignored": false,
|
||||
"scope": {
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [
|
||||
"x",
|
||||
"y"
|
||||
],
|
||||
"children": []
|
||||
}
|
||||
"rootScopes": [
|
||||
{
|
||||
"start": {
|
||||
"line": 0,
|
||||
"column": 0
|
||||
},
|
||||
"end": {
|
||||
"line": 10,
|
||||
"column": 0
|
||||
},
|
||||
"name": null,
|
||||
"kind": "global",
|
||||
"isStackFrame": false,
|
||||
"variables": [
|
||||
"x",
|
||||
"y"
|
||||
],
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"ranges": [
|
||||
@@ -36,7 +38,10 @@
|
||||
"line": 0,
|
||||
"column": 10
|
||||
},
|
||||
"definitionIndex": 0,
|
||||
"definition": {
|
||||
"source": 0,
|
||||
"scope": 0
|
||||
},
|
||||
"stackFrameType": "none",
|
||||
"callSite": null,
|
||||
"bindings": [
|
||||
@@ -76,4 +81,4 @@
|
||||
"children": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -7,7 +7,7 @@ suite ensures that the Node.js source map implementation conforms to the
|
||||
The [`test/fixtures/test426`](../fixtures/test426/) contains a copy of the set of
|
||||
[Source Map Tests][] suite. The last updated hash is:
|
||||
|
||||
* <https://github.com/tc39/source-map-tests/commit/2965987bf4c96afa400c9356c8e620cb340aaee2>
|
||||
* <https://github.com/tc39/source-map-tests/commit/9ea66b466fd37e8a4050033d23b3e1480973c3dc>
|
||||
|
||||
See the json files in [the `status` folder](./status) for prerequisites,
|
||||
expected failures, and support status for specific tests.
|
||||
|
||||
Reference in new issue
Block a user