diff -r 000000000000 -r 6474c204b198 js/src/jit-test/tests/ion/new-8.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/jit-test/tests/ion/new-8.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,21 @@ +// Handle bailing from a constructor that's called from the interpreter. + +function yesokhellothankyou() { + return 5; +} + +function BailFromConstructor() { + this.x = "cats"; + this.y = 5; + var z = yesokhellothankyou(); + + // Causes a bailout for purposes of inlining at the LRecompileCheck. + // Yep, this is great. + for (var i = 0; i < 10500; i++) { + x = 4; + } + + return 4; +} + +var x = new BailFromConstructor();