diff options
Diffstat (limited to 'deps/v8/test/mjsunit/regress/regress-crbug-595615.js')
-rw-r--r-- | deps/v8/test/mjsunit/regress/regress-crbug-595615.js | 16 |
1 files changed, 13 insertions, 3 deletions
diff --git a/deps/v8/test/mjsunit/regress/regress-crbug-595615.js b/deps/v8/test/mjsunit/regress/regress-crbug-595615.js index f5d0ee5344..8b009efd85 100644 --- a/deps/v8/test/mjsunit/regress/regress-crbug-595615.js +++ b/deps/v8/test/mjsunit/regress/regress-crbug-595615.js @@ -8,8 +8,18 @@ function f(o) { return o.x(); +}; +%PrepareFunctionForOptimization(f); +try { + f({x: 1}); +} catch (e) { +} +try { + f({x: 1}); +} catch (e) { } -try { f({ x: 1 }); } catch(e) {} -try { f({ x: 1 }); } catch(e) {} %OptimizeFunctionOnNextCall(f); -try { f({ x: 1 }); } catch(e) {} +try { + f({x: 1}); +} catch (e) { +} |