1 <p>This test verifies that an exception thrown during array sort immediately ends execution.
</p>
2 <p>If the test passes, you'll see a pass message below.
</p>
4 <pre id=
"console">FAIL: Exception did not propogate from array sort.
</pre>
9 document
.getElementById("console").innerHTML
= s
+ "\n";
12 if (window
.testRunner
)
13 testRunner
.dumpAsText();
17 var array
= [ 1, 2, 3 ];
18 var sortFunction
= (function () {
19 var alreadyCalled
= false;
20 return function (a
, b
)
31 array
.sort(sortFunction
);
33 var result
= passed
? "PASS"
34 : "FAIL: sort function was called after an exception was thrown"