remap top level this to undefined - #562

This commit is contained in:
Sebastian McKenzie
2015-02-02 10:44:17 +11:00
parent 4763b95a0d
commit fb360039ce
13 changed files with 15 additions and 10 deletions

View File

@@ -1,3 +0,0 @@
{
"throws": "Top level `this` is `undefined` in strict mode"
}

View File

@@ -1,3 +0,0 @@
{
"throws": "Top level `this` is `undefined` in strict mode"
}

View File

@@ -1,3 +0,0 @@
{
"throws": "Top level `this` is `undefined` in strict mode"
}

View File

@@ -0,0 +1,5 @@
"use strict";
var foo = function () {
return undefined;
};

View File

@@ -0,0 +1,3 @@
"use strict";
undefined.foo();

View File

@@ -0,0 +1,3 @@
"use strict";
var self = undefined;

View File

@@ -0,0 +1,3 @@
"use strict";
undefined;