1
// Copyright 2009 the Sputnik authors. All rights reserved.
2
// This code is governed by the BSD license found in the LICENSE file.
5
* No matter how control leaves the embedded 'Statement',
6
* the scope chain is always restored to its former state
8
* @path ch12/12.10/S12.10_A3.4_T1.js
9
* @description Using "with" statement within iteration statement, leading to normal completion
15
var result = "result";
20
valueOf : function(){return 'obj_valueOf';}
29
//////////////////////////////////////////////////////////////////////////////
32
$ERROR('#1: p1 === 1. Actual: p1 ==='+ p1 );
35
//////////////////////////////////////////////////////////////////////////////
37
//////////////////////////////////////////////////////////////////////////////
39
if(myObj.p1 !== "x1"){
40
$ERROR('#2: myObj.p1 === "x1". Actual: myObj.p1 ==='+ myObj.p1 );
43
//////////////////////////////////////////////////////////////////////////////