Index: test/mjsunit/new-function.js |
diff --git a/test/mjsunit/new-function.js b/test/mjsunit/new-function.js |
index 9e8cc277683cde0f4c22333b0e27cda1a30ad326..794bd765e96d16d13a1cf42c338be6d20174ccdd 100644 |
--- a/test/mjsunit/new-function.js |
+++ b/test/mjsunit/new-function.js |
@@ -25,10 +25,10 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-var x; |
+var x = 0; |
try { |
Function("}), x = this, (function() {"); |
} catch(e) { |
print("Caught " + e); |
} |
-assertTrue(x == "[object global]"); |
+assertTrue(x === 0); |