remap top level this to undefined - #562
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"throws": "Top level `this` is `undefined` in strict mode"
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"throws": "Top level `this` is `undefined` in strict mode"
|
||||
}
|
||||
@@ -1,3 +0,0 @@
|
||||
{
|
||||
"throws": "Top level `this` is `undefined` in strict mode"
|
||||
}
|
||||
5
test/fixtures/transformation/use-strict/undefined-this-arrow-function/expected.js
vendored
Normal file
5
test/fixtures/transformation/use-strict/undefined-this-arrow-function/expected.js
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
"use strict";
|
||||
|
||||
var foo = function () {
|
||||
return undefined;
|
||||
};
|
||||
3
test/fixtures/transformation/use-strict/undefined-this-root-call/expected.js
vendored
Normal file
3
test/fixtures/transformation/use-strict/undefined-this-root-call/expected.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
undefined.foo();
|
||||
3
test/fixtures/transformation/use-strict/undefined-this-root-declaration/expected.js
vendored
Normal file
3
test/fixtures/transformation/use-strict/undefined-this-root-declaration/expected.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
var self = undefined;
|
||||
3
test/fixtures/transformation/use-strict/undefined-this-root-reference/expected.js
vendored
Normal file
3
test/fixtures/transformation/use-strict/undefined-this-root-reference/expected.js
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
|
||||
undefined;
|
||||
Reference in New Issue
Block a user