| Summary: | WeakRef deref can return null instead of undefined | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Stef Busking <stef.busking> | ||||||
| Component: | JavaScriptCore | Assignee: | Yusuke Suzuki <ysuzuki> | ||||||
| Status: | RESOLVED FIXED | ||||||||
| Severity: | Normal | CC: | ashvayka, bfulgham, ews-watchlist, fpizlo, keith_miller, mark.lam, msaboff, saam, sam, tzagallo, webkit-bug-importer, ysuzuki | ||||||
| Priority: | P2 | Keywords: | InRadar | ||||||
| Version: | Safari 15 | ||||||||
| Hardware: | Unspecified | ||||||||
| OS: | Unspecified | ||||||||
| Attachments: |
|
||||||||
|
Description
Stef Busking
2022-01-31 01:51:25 PST
Created attachment 450955 [details]
Patch
Created attachment 450956 [details]
Patch
Comment on attachment 450956 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=450956&action=review > Source/JavaScriptCore/ChangeLog:8 > + WeakRef#deref should return undefined when a wrapped object is collected. nit: a spec link perhaps? https://tc39.es/ecma262/#sec-weakrefderef Thanks Sam and Alexey! Comment on attachment 450956 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=450956&action=review >> Source/JavaScriptCore/ChangeLog:8 >> + WeakRef#deref should return undefined when a wrapped object is collected. > > nit: a spec link perhaps? https://tc39.es/ecma262/#sec-weakrefderef Nice, done. Committed r289152 (246848@trunk): <https://commits.webkit.org/246848@trunk> |