12.10-2-1.js (343B)
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-2-1 6 description: with - expression being Number 7 flags: [noStrict] 8 ---*/ 9 10 var o = 2; 11 var foo = 1; 12 with (o) { 13 foo = 42; 14 } 15 16 assert.sameValue(foo, 42); 17 18 reportCompare(0, 0);