diff options
Diffstat (limited to 'js/src/tests/test262/ch12/12.2/S12.2_A8_T8.js')
-rw-r--r-- | js/src/tests/test262/ch12/12.2/S12.2_A8_T8.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/js/src/tests/test262/ch12/12.2/S12.2_A8_T8.js b/js/src/tests/test262/ch12/12.2/S12.2_A8_T8.js new file mode 100644 index 000000000..d798757d6 --- /dev/null +++ b/js/src/tests/test262/ch12/12.2/S12.2_A8_T8.js @@ -0,0 +1,20 @@ +// Copyright 2009 the Sputnik authors. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/** + * Only AssignmentExpression is admitted when variable is initialized + * + * @path ch12/12.2/S12.2_A8_T8.js + * @description Checking if execution of "var x in __arr" fails + * @negative + */ + +__arr = []; + +////////////////////////////////////////////////////////////////////////////// +//CHECK#1 +var x in __arr; +// +////////////////////////////////////////////////////////////////////////////// + + |