Closed Bug 1531618 Opened 2 years ago Closed 2 years ago

[BinAST] Add testcase with function declaration in block without corresponding scope

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla67
Tracking Status
firefox67 --- fixed

People

(Reporter: arai, Assigned: arai)

References

(Blocks 1 open bug)

Details

Attachments

(1 file)

found while testing Annex B function.
If lexical scope for the then-block doesn't have corresponding name for function declaration inside it,
the declaration is emitted as top-level function, but it's not correct.
we just should block such case.

Pushed by arai_a@mac.com:
https://hg.mozilla.org/integration/autoland/rev/0bf89ff871d6
Detect function declaration without appropriate scope and block it. r=Yoric
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.