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

Unified Diff: test/mjsunit/es6/regexp-flags.js

Issue 1545633002: Reland of Add web compat workarounds for ES2015 RegExp semantics (patchset #3 id:40001 of https://c… (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Move var declaration up to fix debug build Created 5 years 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/cctest/test-regexp.cc ('k') | test/webkit/fast/js/kde/RegExp-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/es6/regexp-flags.js
diff --git a/test/mjsunit/es6/regexp-flags.js b/test/mjsunit/es6/regexp-flags.js
index 98070fb7352766a8ab02136f2ca3868c14deee9c..2f1222197dc8905472084d259188e6daa5145b28 100644
--- a/test/mjsunit/es6/regexp-flags.js
+++ b/test/mjsunit/es6/regexp-flags.js
@@ -50,7 +50,11 @@ assertEquals(4, get_count);
function testName(name) {
- assertThrows(() => RegExp.prototype[name], TypeError);
+ if (name === "sticky") {
+ assertEquals(undefined, RegExp.prototype[name]);
+ } else {
+ assertThrows(() => RegExp.prototype[name], TypeError);
+ }
assertEquals(
"get " + name,
Object.getOwnPropertyDescriptor(RegExp.prototype, name).get.name);
« no previous file with comments | « test/cctest/test-regexp.cc ('k') | test/webkit/fast/js/kde/RegExp-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698