Wed, 31 Dec 2014 13:27:57 +0100
Ignore runtime configuration files generated during quality assurance.
1 // Copyright 2009 the Sputnik authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
4 /**
5 * "for(key in undefined)" Statement is allowed
6 *
7 * @path ch12/12.6/12.6.4/S12.6.4_A1.js
8 * @description Checking if execution of "for(key in undefined)" passes
9 */
11 //////////////////////////////////////////////////////////////////////////////
12 //CHECK#1
13 try {
14 for(__key in undefined){
15 var key=__key;
16 };
17 } catch (e) {
18 $ERROR('#1: "for(key in undefined){}" does not lead to throwing exception');
19 }
20 //
21 //////////////////////////////////////////////////////////////////////////////
24 //////////////////////////////////////////////////////////////////////////////
25 //CHECK#2
26 if (key!==undefined) {
27 $ERROR('#2: key === undefined. Actual: key === '+key);
28 }
29 //
30 //////////////////////////////////////////////////////////////////////////////