diff options
author | André Bargull <andre.bargull@gmail.com> | 2014-08-05 17:38:52 +0200 |
---|---|---|
committer | Brian Terlson <brian.terlson@microsoft.com> | 2014-12-10 16:37:05 -0800 |
commit | 0dbafac5a60e49aa8aab9f8adf2d2614890a63a4 (patch) | |
tree | 3e647bff049242c3b7b393983e64cee351f975d0 /test/language/expressions/compound-assignment/S11.13.2_A4.3_T2.4.js | |
parent | 0ceb428ec93cda5c63f470c0f9d5552441bbc32d (diff) | |
download | qtdeclarative-testsuites-0dbafac5a60e49aa8aab9f8adf2d2614890a63a4.tar.gz |
Add 'var' declarations for strict mode
This change adds 'var' declarations for global variables to allow the tests to run in strict mode (see issue #35).
Extra care was taken to ensure the changes do not alter the test behavior, for example when implicit creation of global variables are part of the test.
Note: The change does not fix all strict mode errors due to missing 'var' declarations.
Diffstat (limited to 'test/language/expressions/compound-assignment/S11.13.2_A4.3_T2.4.js')
-rw-r--r-- | test/language/expressions/compound-assignment/S11.13.2_A4.3_T2.4.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/language/expressions/compound-assignment/S11.13.2_A4.3_T2.4.js b/test/language/expressions/compound-assignment/S11.13.2_A4.3_T2.4.js index a378194d8..8ea80a8b4 100644 --- a/test/language/expressions/compound-assignment/S11.13.2_A4.3_T2.4.js +++ b/test/language/expressions/compound-assignment/S11.13.2_A4.3_T2.4.js @@ -9,6 +9,8 @@ description: > Number (primitive or object) and Undefined ---*/ +var x; + //CHECK#1 x = 1; x %= undefined; |