Index: test/webkit/dfg-intrinsic-osr-exit.js |
diff --git a/test/webkit/concat-while-having-a-bad-time.js b/test/webkit/dfg-intrinsic-osr-exit.js |
similarity index 80% |
copy from test/webkit/concat-while-having-a-bad-time.js |
copy to test/webkit/dfg-intrinsic-osr-exit.js |
index dfda1e08a0b36194b787a44ee12a9693acd8aeaf..4ac756c310f3de11b37ef554399c35a764af8cd9 100644 |
--- a/test/webkit/concat-while-having-a-bad-time.js |
+++ b/test/webkit/dfg-intrinsic-osr-exit.js |
@@ -22,10 +22,19 @@ |
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
description( |
-"Tests the behavior of Array.prototype.concat while the array is having a bad time due to one of the elements we are concatenating." |
+"This tests that an OSR exit inside of an intrinsic that was not loaded with a method check works correctly." |
); |
-Object.defineProperty(Array.prototype, 0, { writable: false }); |
-shouldBe("[42].concat()", "[42]"); |
+function foo(a,b) { |
+ return a[0](b.f); |
+} |
+for (var i = 0; i < 100; ++i) |
+ foo([Math.abs], {f:5}); |
+shouldBe("foo([Math.abs], {f:5})", "5"); |
+ |
+for (var i = 0; i < 10; ++i) |
+ shouldBe("foo([Math.abs], {f:5.5})", "5.5"); |
+ |
+var successfullyParsed = true; |