| Index: test/mjsunit/es6/classes-subclass-builtins.js
|
| diff --git a/test/mjsunit/es6/classes-subclass-builtins.js b/test/mjsunit/es6/classes-subclass-builtins.js
|
| index e36ba0a90f58aff5d7f16acc895204de89f4df99..7669ef3a8a7e0168cdf48c5ebce8e66cf052b2ab 100644
|
| --- a/test/mjsunit/es6/classes-subclass-builtins.js
|
| +++ b/test/mjsunit/es6/classes-subclass-builtins.js
|
| @@ -919,7 +919,13 @@ function TestMapSetSubclassing(container, is_map) {
|
|
|
| var o = Reflect.construct(RegExp, [pattern], f);
|
| assertEquals(["match", "tostring"], log);
|
| - assertEquals(/biep/, o);
|
| + // TODO(littledan): Is the RegExp constructor correct to create
|
| + // the internal slots and do these type checks this way?
|
| + assertEquals("biep", %_RegExpSource(o));
|
| + assertThrows(() => Object.getOwnPropertyDescriptor(RegExp.prototype,
|
| + 'source').get(o),
|
| + TypeError);
|
| + assertEquals("/undefined/undefined", RegExp.prototype.toString.call(o));
|
| assertTrue(o.__proto__ === p2);
|
| assertTrue(f.prototype === p3);
|
| })();
|
|
|