This commit is contained in:
Henry Zhu 2018-01-08 19:15:22 -05:00
parent b6ce2b649f
commit 23d12acd15
2 changed files with 22 additions and 1 deletions

View File

@ -26,7 +26,8 @@ module.exports = function(code, options) {
"decorators",
"doExpressions",
"exponentiationOperator",
"exportExtensions",
"exportDefaultFrom",
"exportNamespaceFrom",
"functionBind",
"functionSent",
"objectRestSpread",

View File

@ -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(`