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

RESOLVED FIXED in Firefox 67

Status

()

enhancement
P3
normal
RESOLVED FIXED
3 months ago
3 months ago

People

(Reporter: arai, Assigned: arai)

Tracking

(Blocks 1 bug)

Trunk
mozilla67
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox67 fixed)

Details

Attachments

(1 attachment)

Assignee

Description

3 months ago

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.

Comment 2

3 months ago
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

Comment 3

3 months ago
bugherder
Status: ASSIGNED → RESOLVED
Last Resolved: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla67
You need to log in before you can comment on or make changes to this bug.