diff options
Diffstat (limited to 'deps/v8/test/mjsunit/es6/regexp-flags.js')
-rw-r--r-- | deps/v8/test/mjsunit/es6/regexp-flags.js | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/deps/v8/test/mjsunit/es6/regexp-flags.js b/deps/v8/test/mjsunit/es6/regexp-flags.js index 2f1222197d..79b0197e91 100644 --- a/deps/v8/test/mjsunit/es6/regexp-flags.js +++ b/deps/v8/test/mjsunit/es6/regexp-flags.js @@ -50,11 +50,9 @@ assertEquals(4, get_count); function testName(name) { - if (name === "sticky") { - assertEquals(undefined, RegExp.prototype[name]); - } else { - assertThrows(() => RegExp.prototype[name], TypeError); - } + // TODO(littledan): For web compatibility, we don't throw an exception, + // but ES2015 expects an exception to be thrown from this getter. + assertEquals(undefined, RegExp.prototype[name]); assertEquals( "get " + name, Object.getOwnPropertyDescriptor(RegExp.prototype, name).get.name); |