rename useStrict test to something more specific

This commit is contained in:
Sebastian McKenzie
2015-01-30 19:39:00 +11:00
parent cbdf746474
commit ac01caacd3
5 changed files with 5 additions and 5 deletions

View File

@@ -17,5 +17,5 @@ exports.FunctionExpression = function (node, parent, scope, context) {
};
exports.ThisExpression = function (node, parent, scope, context, file) {
throw file.errorWithNode(node, "Top level `this` is not allowed", ReferenceError);
throw file.errorWithNode(node, "Top level `this` is `undefined` in strict mode", ReferenceError);
};