JS: when resolving temporary functions, don't rely on JsScope hierarchy, build this hierarchy instead, based on scoping rules for function, var, etc expressions
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
var $a = 23;
|
||||
var $b = 42;
|
||||
|
||||
function foo() {
|
||||
var $c = 99;
|
||||
console.log($a + $c);
|
||||
}
|
||||
|
||||
function bar() {
|
||||
var $d = 101;
|
||||
console.log($b + $d);
|
||||
}
|
||||
Reference in New Issue
Block a user