archives

« Bugzilla Issues Index

#2644 — 9.2.14 Function Declaration Instantiation: "arguments" binding not checked when processing variable statements


9.2.14 Function Declaration Instantiation:

Step 26.a also needs to check the variable name is "arguments" and needsArgumentsBinding is true. In that case, no binding must be created.

Test case:
---
function f(y) {
var arguments;
return arguments;
}
typeof f(0)
---

Expected: Returns "object"
Actual: Assertion error in step 26.a.i


Step 25 instead of step 26.


fixed in rev24 editor's draft


fixed in rev24