Index: test/mjsunit/es6/regexp-flags.js |
diff --git a/test/mjsunit/es6/regexp-flags.js b/test/mjsunit/es6/regexp-flags.js |
index 2f1222197dc8905472084d259188e6daa5145b28..79b0197e917630c35481dd9f5256da7db484a932 100644 |
--- a/test/mjsunit/es6/regexp-flags.js |
+++ b/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); |