summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/object-literal.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/mjsunit/object-literal.js')
-rw-r--r--deps/v8/test/mjsunit/object-literal.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/v8/test/mjsunit/object-literal.js b/deps/v8/test/mjsunit/object-literal.js
index cbc4f5de93..0050792b67 100644
--- a/deps/v8/test/mjsunit/object-literal.js
+++ b/deps/v8/test/mjsunit/object-literal.js
@@ -28,6 +28,7 @@
// Flags: --allow-natives-syntax
function runLiteralsTest(fn) {
+ %PrepareFunctionForOptimization(fn);
// The first run creates an copy directly from the boilerplate decsription.
fn();
// The second run will create the boilerplate.
@@ -531,6 +532,7 @@ runLiteralsTest(function TestSlowLiteralOptimized() {
function f() {
return {__proto__:null, bar:"barValue"};
}
+ %PrepareFunctionForOptimization(f);
let obj = f();
assertFalse(%HasFastProperties(obj));
assertEquals(Object.getPrototypeOf(obj), null);