You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
232 B

// with-test
var a;
with(Math) a=PI;
var b = { get_member : function() { return this.member;}, member:41 };
with(b) {
let a = get_member(); //<--- a is local for this block
var c = a+1;
}
result = a == Math.PI && c == 42;