| Summary: | Inconsistent output compared with other JS engines | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | sunlili |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | Normal | CC: | fpizlo, ysuzuki |
| Priority: | P2 | ||
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Because class heritage should be handled as strict code. *** This bug has been marked as a duplicate of bug 187045 *** |
Hello, The following code behaves strangely (inconsistent with other engines). class c { [d = function () { return c; }]() { } } print("BT_FLAG"); In JavaScriptCore, the output is BT_FLAG However, in V8 and SpiderMonkey, output is ReferenceError: d is not defined BT group 2018.7.18