diff options
Diffstat (limited to 'deps/v8/test/mjsunit/regress/regress-7115.js')
-rw-r--r-- | deps/v8/test/mjsunit/regress/regress-7115.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-7115.js b/deps/v8/test/mjsunit/regress/regress-7115.js index 8bbb1ded20..f17c2e6bb9 100644 --- a/deps/v8/test/mjsunit/regress/regress-7115.js +++ b/deps/v8/test/mjsunit/regress/regress-7115.js @@ -5,7 +5,15 @@ // Flags: --allow-natives-syntax function TestBuiltinSubclassing(Builtin) { - assertTrue(%HasFastProperties(Builtin)); + if (!%IsDictPropertyConstTrackingEnabled()) { + // TODO(v8:11248) In the current implementation of + // v8_dict_property_const_tracking, prototypes are converted to dictionary + // mode in many places, but we don't guarantee that they are *created* as + // dictionary mode objects, yet. This will be fixed in the future. Until + // then, if v8_dict_property_const_tracking is enabled, we cannot always + // know for sure if a builtin has been converted already or not. + assertTrue(%HasFastProperties(Builtin)); + } assertTrue(%HasFastProperties(Builtin.prototype)); assertEquals(!%IsDictPropertyConstTrackingEnabled(), %HasFastProperties(Builtin.prototype.__proto__)); |