Index: test/mjsunit/regexp.js |
diff --git a/test/mjsunit/regexp.js b/test/mjsunit/regexp.js |
index c2d92823bce985a3c66e1cba873da85e7cab4d94..6374296210bb53ed75ab67684043e50f6ecd47e7 100644 |
--- a/test/mjsunit/regexp.js |
+++ b/test/mjsunit/regexp.js |
@@ -605,23 +605,29 @@ assertEquals(["ts", "li"], log); |
// Check that properties of RegExp have the correct permissions. |
var re = /x/g; |
-var desc = Object.getOwnPropertyDescriptor(re, "global"); |
-assertEquals(true, desc.value); |
-assertEquals(false, desc.configurable); |
+var desc = Object.getOwnPropertyDescriptor(re.__proto__, "global"); |
+assertInstanceof(desc.get, Function); |
+assertEquals(true, desc.configurable); |
assertEquals(false, desc.enumerable); |
-assertEquals(false, desc.writable); |
-desc = Object.getOwnPropertyDescriptor(re, "multiline"); |
-assertEquals(false, desc.value); |
-assertEquals(false, desc.configurable); |
+desc = Object.getOwnPropertyDescriptor(re.__proto__, "multiline"); |
+assertInstanceof(desc.get, Function); |
+assertEquals(true, desc.configurable); |
assertEquals(false, desc.enumerable); |
-assertEquals(false, desc.writable); |
-desc = Object.getOwnPropertyDescriptor(re, "ignoreCase"); |
-assertEquals(false, desc.value); |
-assertEquals(false, desc.configurable); |
+desc = Object.getOwnPropertyDescriptor(re.__proto__, "ignoreCase"); |
+assertInstanceof(desc.get, Function); |
+assertEquals(true, desc.configurable); |
assertEquals(false, desc.enumerable); |
-assertEquals(false, desc.writable); |
+ |
+desc = Object.getOwnPropertyDescriptor(re, "global"); |
+assertEquals(undefined, desc); |
+ |
+desc = Object.getOwnPropertyDescriptor(re, "multiline"); |
+assertEquals(undefined, desc); |
+ |
+desc = Object.getOwnPropertyDescriptor(re, "ignoreCase"); |
+assertEquals(undefined, desc); |
desc = Object.getOwnPropertyDescriptor(re, "lastIndex"); |
assertEquals(0, desc.value); |