| Index: test/webkit/fast/js/modify-non-references.js
|
| diff --git a/test/webkit/fast/js/modify-non-references.js b/test/webkit/fast/js/modify-non-references.js
|
| index e8b9682e70685811ec36af7a783a9c041b30039f..bd9b7aa96d56df14896ab0bfe5a48de69ef5bd8b 100644
|
| --- a/test/webkit/fast/js/modify-non-references.js
|
| +++ b/test/webkit/fast/js/modify-non-references.js
|
| @@ -27,9 +27,9 @@ shouldBe("function f() { ++g(); } f.toString()", "'function f() { ++g(); }'");
|
| shouldBe("function f() { --g(); } f.toString()", "'function f() { --g(); }'");
|
| shouldBe("function f() { g() = 1; } f.toString()", "'function f() { g() = 1; }'");
|
| shouldBe("function f() { g() += 1; } f.toString()", "'function f() { g() += 1; }'");
|
| -shouldThrow("g()++", "'ReferenceError: Postfix ++ operator applied to value that is not a reference.'");
|
| -shouldThrow("g()--", "'ReferenceError: Postfix -- operator applied to value that is not a reference.'");
|
| -shouldThrow("++g()", "'ReferenceError: Prefix ++ operator applied to value that is not a reference.'");
|
| -shouldThrow("--g()", "'ReferenceError: Prefix -- operator applied to value that is not a reference.'");
|
| -shouldThrow("g() = 1", "'ReferenceError: Left side of assignment is not a reference.'");
|
| -shouldThrow("g() += 1", "'ReferenceError: Left side of assignment is not a reference.'");
|
| +shouldThrow("Number()++", "'ReferenceError: Invalid left-hand side expression in postfix operation'");
|
| +shouldThrow("Number()--", "'ReferenceError: Invalid left-hand side expression in postfix operation'");
|
| +shouldThrow("++Number()", "'ReferenceError: Invalid left-hand side expression in prefix operation'");
|
| +shouldThrow("--Number()", "'ReferenceError: Invalid left-hand side expression in prefix operation'");
|
| +shouldThrow("Number() = 1", "'ReferenceError: Invalid left-hand side in assignment'");
|
| +shouldThrow("Number() += 1", "'ReferenceError: Invalid left-hand side in assignment'");
|
|
|