archives

« Bugzilla Issues Index

#2645 — 9.2.14 Function Declaration Instantiation: Duplicate variable scoped bindings not checked


9.2.14 Function Declaration Instantiation, step 26.

Step 26.a also needs to check if the binding is already present, varNames may contains duplicates.

Test case:
---
function f() {
var a;
var a;
}
---

Expected: No assertion error in CreateMutableBinding
Actual: Assertion error in CreateMutableBinding


Step 25 instead of step 26.


fixed in rev24 editor's draft


fixed in rev24