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