diff options
Diffstat (limited to 'test/language/future-reserved-words/S7.6.1.2_A1.26.js')
-rw-r--r-- | test/language/future-reserved-words/S7.6.1.2_A1.26.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/language/future-reserved-words/S7.6.1.2_A1.26.js b/test/language/future-reserved-words/S7.6.1.2_A1.26.js new file mode 100644 index 000000000..b5b9e431c --- /dev/null +++ b/test/language/future-reserved-words/S7.6.1.2_A1.26.js @@ -0,0 +1,13 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +info: The "static" token can not be used as identifier in strict code +es5id: 7.6.1.2_A1.26 +description: Checking if execution of "static=1" fails in strict code +negative: SyntaxError +flags: [onlyStrict] +---*/ + +"use strict"; +var static = 1; |