Bug 168184
| Summary: | [ES6]. Implement Annex B.3.3 function hoisting rules for eval in catch block | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | GSkachkov <gskachkov> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | ashvayka, saam |
| Priority: | P2 | ||
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Bug Depends on: | 163208 | ||
| Bug Blocks: | |||
GSkachkov
function foo () {
try {
throw new Error('Error');
} catch (boo) {
eval('{ function boo() {} }');
print(boo); // should be Error
}
print(boo); // should be function boo
}
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Alexey Shvayka
Fixed in https://github.com/WebKit/WebKit/commit/d0d05739899c9a8d76d166bbc1afbd116fa5eaf8 with plenty of test cases added.
*** This bug has been marked as a duplicate of bug 167837 ***