cptn-empty-statement.js (483B)
1 // Copyright 2009 the Sputnik authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 info: | 6 In the "if" statement empty statement is allowed and is evaluated to 7 "undefined" 8 es5id: 12.5_A7 9 description: Checking by using eval "eval("if(1);"))" 10 ---*/ 11 12 var __evaluated = eval("if(1);"); 13 14 assert.sameValue(__evaluated, undefined, '#1: __evaluated === undefined. Actual: __evaluated ==='+ __evaluated); 15 16 reportCompare(0, 0);