* Use first binding for multiple var declarations Since var declarations after initial binding have no effect, use the first declaration. Fixes #2378 * Include hoisted function bindings * Missing newline in expected.js * Simplify constantViolations in new Binding on existing * clarify comment language
13 lines
147 B
JavaScript
13 lines
147 B
JavaScript
function f(z, b) {
|
|
var z = "redeclared";
|
|
return b;
|
|
}
|
|
|
|
function g(z) {
|
|
function z() {
|
|
return "function, redeclared";
|
|
}
|
|
|
|
return z();
|
|
}
|