* 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
12 lines
146 B
JavaScript
12 lines
146 B
JavaScript
function f(a, b) {
|
|
var a = "redeclared";
|
|
return b;
|
|
}
|
|
|
|
function g(a) {
|
|
function a() {
|
|
return "function, redeclared";
|
|
}
|
|
return a();
|
|
}
|