Index: test/mjsunit/regress/regress-1170.js |
diff --git a/test/mjsunit/regress/regress-1170.js b/test/mjsunit/regress/regress-1170.js |
index 8a5a9cfb19b7f20247ce4a43819c5ebbdb5ff67a..2ed7458782b8bb2120d1dd1992993faca1ec22bf 100644 |
--- a/test/mjsunit/regress/regress-1170.js |
+++ b/test/mjsunit/regress/regress-1170.js |
@@ -30,18 +30,18 @@ var setter_value = 0; |
__proto__.__defineSetter__("a", function(v) { setter_value = v; }); |
eval("var a = 1"); |
assertEquals(1, setter_value); |
-assertFalse(hasOwnProperty("a")); |
+assertFalse(this.hasOwnProperty("a")); |
eval("with({}) { eval('var a = 2') }"); |
assertEquals(2, setter_value); |
-assertFalse(hasOwnProperty("a")); |
+assertFalse(this.hasOwnProperty("a")); |
// Function declarations are treated specially to match Safari. We do |
// not call setters for them. |
eval("function a() {}"); |
-assertTrue(hasOwnProperty("a")); |
+assertTrue(this.hasOwnProperty("a")); |
-__proto__.__defineSetter__("b", function(v) { assertUnreachable(); }); |
+__proto__.__defineSetter__("b", function(v) { assertUnreachable(); }); |
try { |
eval("const b = 23"); |
assertUnreachable(); |
@@ -61,6 +61,5 @@ try { |
assertUnreachable(); |
} catch(e) { |
assertEquals(42, e); |
- assertFalse(hasOwnProperty("c")); |
+ assertFalse(this.hasOwnProperty("c")); |
} |
- |