| Index: test/mjsunit/regress/regress-crbug-430846.js
|
| diff --git a/test/mjsunit/compiler/opt-next-call.js b/test/mjsunit/regress/regress-crbug-430846.js
|
| similarity index 53%
|
| copy from test/mjsunit/compiler/opt-next-call.js
|
| copy to test/mjsunit/regress/regress-crbug-430846.js
|
| index 6366c7d72e3d7f69662dfcab858ce5b09b29da81..3047c7fc34202b42f71ee78cd19d6ade0df62349 100644
|
| --- a/test/mjsunit/compiler/opt-next-call.js
|
| +++ b/test/mjsunit/regress/regress-crbug-430846.js
|
| @@ -4,10 +4,11 @@
|
|
|
| // Flags: --allow-natives-syntax
|
|
|
| -function foo() {
|
| - return "fooed";
|
| -}
|
| +function foo() { return 1; };
|
| +var o1 = {};
|
| +o1.foo = foo;
|
|
|
| -%OptimizeFunctionOnNextCall(foo);
|
| -assertEquals("fooed", foo());
|
| -assertOptimized(foo);
|
| +var json = '{"foo": {"x": 1}}';
|
| +var o2 = JSON.parse(json);
|
| +var o3 = JSON.parse(json);
|
| +assertTrue(%HaveSameMap(o2, o3));
|
|
|