summaryrefslogtreecommitdiff
path: root/test/language/expressions/compound-assignment/S11.13.2_A4.6_T2.2.js
diff options
context:
space:
mode:
authorAndré Bargull <andre.bargull@gmail.com>2014-08-05 17:38:52 +0200
committerBrian Terlson <brian.terlson@microsoft.com>2014-12-10 16:37:05 -0800
commit0dbafac5a60e49aa8aab9f8adf2d2614890a63a4 (patch)
tree3e647bff049242c3b7b393983e64cee351f975d0 /test/language/expressions/compound-assignment/S11.13.2_A4.6_T2.2.js
parent0ceb428ec93cda5c63f470c0f9d5552441bbc32d (diff)
downloadqtdeclarative-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.6_T2.2.js')
-rw-r--r--test/language/expressions/compound-assignment/S11.13.2_A4.6_T2.2.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/language/expressions/compound-assignment/S11.13.2_A4.6_T2.2.js b/test/language/expressions/compound-assignment/S11.13.2_A4.6_T2.2.js
index 5e4e9cb34..23a74a684 100644
--- a/test/language/expressions/compound-assignment/S11.13.2_A4.6_T2.2.js
+++ b/test/language/expressions/compound-assignment/S11.13.2_A4.6_T2.2.js
@@ -9,6 +9,8 @@ description: >
Number (primitive or object) and String (primitive and object)
---*/
+var x;
+
//CHECK#1
x = "1";
x <<= 1;