forked from babel/babel
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c3445a
commit 7360a30
Showing
11 changed files
with
102 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
...form-es2015-arrow-functions/test/fixtures/arrow-functions/arguments-source-maps/actual.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function fn() { | ||
var inner = () => { | ||
console.log(arguments); | ||
}; | ||
} |
7 changes: 7 additions & 0 deletions
7
...rm-es2015-arrow-functions/test/fixtures/arrow-functions/arguments-source-maps/expected.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
function fn() { | ||
var _arguments = arguments; | ||
|
||
var inner = function () { | ||
console.log(_arguments); | ||
}; | ||
} |
3 changes: 3 additions & 0 deletions
3
...m-es2015-arrow-functions/test/fixtures/arrow-functions/arguments-source-maps/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": ["transform-es2015-arrow-functions"] | ||
} |
18 changes: 18 additions & 0 deletions
18
...s2015-arrow-functions/test/fixtures/arrow-functions/arguments-source-maps/source-map.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"file": "arrow-functions/arguments-source-maps/expected.js", | ||
"mappings": "AAAA,SAASA,EAAT,GAAc;AAAA;;AACZ,MAAIC,QAAQ,YAAM;AAChBC,YAAQC,GAAR,CAAYC,UAAZ;AACD,GAFD;AAGD", | ||
"names": [ | ||
"fn", | ||
"inner", | ||
"console", | ||
"log", | ||
"arguments" | ||
], | ||
"sources": [ | ||
"arrow-functions/arguments-source-maps/actual.js" | ||
], | ||
"sourcesContent": [ | ||
"function fn() {\n var inner = () => {\n console.log(arguments);\n };\n}" | ||
], | ||
"version": 3 | ||
} |
8 changes: 8 additions & 0 deletions
8
...-arrow-functions/test/fixtures/arrow-functions/arguments-source-maps/source-mappings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[{ | ||
"generated": { | ||
"line": 5, "column": 16 | ||
}, | ||
"original": { | ||
"line": 3, "column": 16 | ||
} | ||
}] |
5 changes: 5 additions & 0 deletions
5
...transform-es2015-arrow-functions/test/fixtures/arrow-functions/this-source-maps/actual.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
function fn() { | ||
var inner = () => { | ||
console.log(this); | ||
}; | ||
} |
7 changes: 7 additions & 0 deletions
7
...ansform-es2015-arrow-functions/test/fixtures/arrow-functions/this-source-maps/expected.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
function fn() { | ||
var _this = this; | ||
|
||
var inner = function () { | ||
console.log(_this); | ||
}; | ||
} |
3 changes: 3 additions & 0 deletions
3
...nsform-es2015-arrow-functions/test/fixtures/arrow-functions/this-source-maps/options.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"plugins": ["transform-es2015-arrow-functions"] | ||
} |
17 changes: 17 additions & 0 deletions
17
...orm-es2015-arrow-functions/test/fixtures/arrow-functions/this-source-maps/source-map.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"file": "arrow-functions/this-source-maps/expected.js", | ||
"mappings": "AAAA,SAASA,EAAT,GAAc;AAAA;;AACZ,MAAIC,QAAQ,YAAM;AAChBC,YAAQC,GAAR,CAAY,KAAZ;AACD,GAFD;AAGD", | ||
"names": [ | ||
"fn", | ||
"inner", | ||
"console", | ||
"log" | ||
], | ||
"sources": [ | ||
"arrow-functions/this-source-maps/actual.js" | ||
], | ||
"sourcesContent": [ | ||
"function fn() {\n var inner = () => {\n console.log(this);\n };\n}" | ||
], | ||
"version": 3 | ||
} |
8 changes: 8 additions & 0 deletions
8
...s2015-arrow-functions/test/fixtures/arrow-functions/this-source-maps/source-mappings.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
[{ | ||
"generated": { | ||
"line": 5, "column": 16 | ||
}, | ||
"original": { | ||
"line": 3, "column": 16 | ||
} | ||
}] |