parent
3677bae3a2
commit
45c7e8cb80
@ -0,0 +1,15 @@
|
|||||||
|
// 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;
|
Loading…
Reference in new issue