Bug 292190
| Summary: | [JSC] Functions named yield in strict mode is invalid | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Sosuke Suzuki <sosuke> |
| Component: | JavaScriptCore | Assignee: | Sosuke Suzuki <sosuke> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Local Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Sosuke Suzuki
According to the spce[1], SyntaxError should be thrown for functions
named yield in strict mode.
However current JSC don't throw SyntaxError for functions with `use strict`
directive in their body.
This patch changes to fix it.
[1]: https://tc39.es/ecma262/#sec-identifiers-static-semantics-early-errors
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Sosuke Suzuki
Pull request: https://github.com/WebKit/WebKit/pull/44609
Radar WebKit Bug Importer
<rdar://problem/150683365>
EWS
Committed 295402@main (49e7f6c0c1d5): <https://commits.webkit.org/295402@main>
Reviewed commits have been landed. Closing PR #44609 and removing active labels.