1
// Copyright 2009 the Sputnik authors. All rights reserved.
2
// This code is governed by the BSD license found in the LICENSE file.
5
* Changing property using "eval" statement containing "with" statement
7
* @path ch12/12.10/S12.10_A4_T3.js
8
* @description Changing boolean property
16
eval("with(myObj){p1=false}");
18
//////////////////////////////////////////////////////////////////////////////
20
if(myObj.p1 !== false){
21
$ERROR('#1: myObj.p1 === false. Actual: myObj.p1 ==='+ myObj.p1 );
24
//////////////////////////////////////////////////////////////////////////////
26
//////////////////////////////////////////////////////////////////////////////
29
$ERROR('#2: myObj.p1 !== \'a\'');
32
//////////////////////////////////////////////////////////////////////////////