Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(294)

Unified Diff: test/mjsunit/regexp.js

Issue 1409013006: Revert of Implement flag and source getters on RegExp.prototype. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@rproto
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « test/mjsunit/mirror-regexp.js ('k') | test/mjsunit/regress/regress-447561.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « test/mjsunit/mirror-regexp.js ('k') | test/mjsunit/regress/regress-447561.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698