Bug 187045
| Summary: | Inconsistent output compared with other JS engines | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | sunlili |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | NEW | ||
| Severity: | Normal | CC: | ysuzuki |
| Priority: | P2 | ||
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
sunlili
Hello,
The following code behaves strangely (inconsistent with other engines).
class cc extends ( x = function () {
console.log("Hi");
}) {
};
In webkit, cc is defined normally and x is defined too.
However, in V8 and Firefox, a ReferenceError is reported:
ReferenceError: assignment to undeclared variable x
BT group
2018.6.26
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Yusuke Suzuki
*** Bug 187758 has been marked as a duplicate of this bug. ***