rename useStrict test to something more specific
This commit is contained in:
@@ -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);
|
||||
};
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "Top level `this` is not allowed"
|
||||
"throws": "Top level `this` is `undefined` in strict mode"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "Top level `this` is not allowed"
|
||||
"throws": "Top level `this` is `undefined` in strict mode"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "Top level `this` is not allowed"
|
||||
"throws": "Top level `this` is `undefined` in strict mode"
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"throws": "Top level `this` is not allowed"
|
||||
"throws": "Top level `this` is `undefined` in strict mode"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user