Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
fix export change (#571)
Browse files Browse the repository at this point in the history
  • Loading branch information
hzoo committed Jan 9, 2018
1 parent ef27670 commit d96ce55
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/parse.js
Expand Up @@ -26,7 +26,8 @@ module.exports = function(code, options) {
"decorators",
"doExpressions",
"exponentiationOperator",
"exportExtensions",
"exportDefaultFrom",
"exportNamespaceFrom",
"functionBind",
"functionSent",
"objectRestSpread",
Expand Down
20 changes: 20 additions & 0 deletions test/non-regression.js
Expand Up @@ -1864,6 +1864,26 @@ describe("verify", () => {
);
});

it("exportDefaultFrom", () => {
verifyAndAssertMessages(
unpad(`
export v from "mod"
`),
{},
[]
);
});

it("exportNamespaceFrom", () => {
verifyAndAssertMessages(
unpad(`
export * as ns from "mod"
`),
{},
[]
);
});

it("ignore eval in scope analysis", () => {
verifyAndAssertMessages(
unpad(`
Expand Down

0 comments on commit d96ce55

Please sign in to comment.