Title: [178439] trunk/Source/_javascript_Core/tests/stress/invalid_array.js
Revision
178439
Author
mmir...@apple.com
Date
2015-01-14 12:57:51 -0800 (Wed, 14 Jan 2015)

Log Message

added invalid_array test

Added Paths


Diff

Added: trunk/Source/_javascript_Core/tests/stress/invalid_array.js (0 => 178439)


--- trunk/Source/_javascript_Core/tests/stress/invalid_array.js	                        (rev 0)
+++ trunk/Source/_javascript_Core/tests/stress/invalid_array.js	2015-01-14 20:57:51 UTC (rev 178439)
@@ -0,0 +1,20 @@
+// debug-js -s --enableConcurrentJIT=false --thresholdForJITAfterWarmUp=1 --thresholdForOptimizeAfterWarmUp=2
+
+function TestCase(a) {
+    this.actual = 0.1;
+}
+
+var testcases = new Array();
+
+for (var i=0; i < 3; i++){
+    testcases[i] = new TestCase();
+}
+function test() {
+    for ( tc=0; tc < testcases.length; tc++ ) {
+        var v = testcases[tc];
+        v.actual = v.actual;
+        "" + testcases[tc].actual;
+    }
+    print("DONE");
+}
+test();
\ No newline at end of file
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to