-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for export {name as default} statement.
This fixes #624 issue on Github.
- Loading branch information
1 parent
07bea68
commit eb87e24
Showing
8 changed files
with
128 additions
and
2 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
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,9 @@ | ||
/*--- | ||
includes: [] | ||
flags: [] | ||
paths: [test/js/module/] | ||
---*/ | ||
|
||
import imp from 'lib4.js'; | ||
|
||
assert.sameValue(imp, 10); |
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,14 @@ | ||
/*--- | ||
includes: [] | ||
flags: [] | ||
paths: [test/js/module] | ||
---*/ | ||
|
||
import a from 'lib6.js'; | ||
import b from 'lib6-1.js'; | ||
|
||
assert.sameValue(a.a, 1); | ||
assert.sameValue(a.b, 2); | ||
|
||
assert.sameValue(a.a, b.a); | ||
assert.sameValue(a.b, b.b); |
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,9 @@ | ||
/*--- | ||
includes: [] | ||
flags: [] | ||
paths: [test/js/module] | ||
negative: | ||
phase: runtime | ||
---*/ | ||
|
||
import m from 'lib5.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,2 @@ | ||
var var10 = 10; | ||
export { var10 as default }; |
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,6 @@ | ||
var uu = 10; | ||
var uu1 = 11; | ||
|
||
export { uu as default }; | ||
|
||
export { uu1 as default }; |
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,6 @@ | ||
var obj = { | ||
a:1, | ||
b:2 | ||
} | ||
|
||
export default obj; |
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,6 @@ | ||
var obj = { | ||
a:1, | ||
b:2 | ||
} | ||
|
||
export {obj as default}; |