Reviewed by Oliver.
Bug 17663: Wrong sequencing of argument list evaluation
<https://bugs.webkit.org/show_bug.cgi?id=17663>
SquirrelFish fixed this bug, but we should add a test.
LayoutTests:
* fast/js/order-of-operations-expected.txt:
* fast/js/resources/order-of-operations.js:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@34413
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2008-06-07 Cameron Zwarich <cwzwarich@uwaterloo.ca>
+
+ Reviewed by Oliver.
+
+ Bug 17663: Wrong sequencing of argument list evaluation
+ <https://bugs.webkit.org/show_bug.cgi?id=17663>
+
+ SquirrelFish fixed this bug, but we should add a test.
+
+ * fast/js/order-of-operations-expected.txt:
+ * fast/js/resources/order-of-operations.js:
+
2008-06-06 Robert Blaut <webkit@blaut.biz>
Reviewed by Darin Adler.
PASS (function(){ leftRight = ""; left() & right(); return leftRight; })() is "LeftRight"
PASS (function(){ leftRight = ""; left() | right(); return leftRight; })() is "LeftRight"
PASS (function(){ leftRight = ""; left() ^ right(); return leftRight; })() is "LeftRight"
+PASS testEvaluationOfArguments() is true
PASS successfullyParsed is true
TEST COMPLETE
shouldBe('(function(){ leftRight = ""; left() | right(); return leftRight; })()', '"LeftRight"');
shouldBe('(function(){ leftRight = ""; left() ^ right(); return leftRight; })()', '"LeftRight"');
+function testEvaluationOfArguments()
+{
+ function throwPass()
+ {
+ throw "PASS";
+ }
+
+ var nonFunction = 42;
+
+ try {
+ nonFunction(throwPass());
+ } catch (e) {
+ return e == "PASS";
+ }
+}
+
+shouldBeTrue("testEvaluationOfArguments()");
+
var successfullyParsed = true;