Bug 298148
| Summary: | [JSC] emit `op_typeof_is_undefined` for `typeof x>"u"` | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Sosuke Suzuki <sosuke> |
| Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | webkit-bug-importer |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Sosuke Suzuki
esbuild minifies `typeof x === "undefined"` to `typeof x>"u"`. This reduces
code size but is slower in JSC.
This patch makes `typeof x>"u"` emit `op_typeof_is_undefined` just like
`typeof x === "undefined"`.
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Sosuke Suzuki
Pull request: https://github.com/WebKit/WebKit/pull/50101
EWS
Committed 299368@main (a937882ba69b): <https://commits.webkit.org/299368@main>
Reviewed commits have been landed. Closing PR #50101 and removing active labels.
Radar WebKit Bug Importer
<rdar://problem/159535106>