12.10-0-8.js (402B)
1 // Copyright (c) 2012 Ecma International. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 4 /*--- 5 es5id: 12.10-0-8 6 description: with introduces scope - var initializer sets like named property 7 flags: [noStrict] 8 ---*/ 9 10 var o = {foo: 42}; 11 12 with (o) { 13 var foo = "set in with"; 14 } 15 16 assert.sameValue(o.foo, "set in with", 'o.foo'); 17 18 reportCompare(0, 0);