remove incorrect no eval in strict mode

This commit is contained in:
Sebastian McKenzie 2015-05-10 20:01:13 +01:00
parent 8ea2ae924d
commit 444a64e934
2 changed files with 0 additions and 7 deletions

View File

@ -18,7 +18,6 @@ export const MESSAGES = {
modulesIllegalExportName: "Illegal export $1",
unknownForHead: "Unknown node type $1 in ForStatement",
didYouMean: "Did you mean $1?",
evalInStrictMode: "eval is not allowed in strict mode",
codeGeneratorDeopt: "Note: The code generator has deoptimised the styling of $1 as it exceeds the max of $2.",
missingTemplatesDirectory: "no templates directory - this is most likely the result of a broken `npm publish`. Please report to https://github.com/babel/babel/issues",
unsupportedOutputType: "Unsupported output type $1",

View File

@ -29,9 +29,3 @@ export function ThisExpression() {
return t.identifier("undefined");
}
}
export function CallExpression(node, parent, scope, file) {
if (t.isIdentifier(node.callee, { name: "eval" })) {
throw file.errorWithNode(node, messages.get("evalInStrictMode"));
}
}