| Summary: | Getting function name that includes space return empty string | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Jimmy Wärting <jimmy> |
| Component: | JavaScriptCore | Assignee: | Mark Lam <mark.lam> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | mark.lam, webkit-bug-importer, ysuzuki |
| Priority: | P2 | Keywords: | InRadar |
| Version: | Safari 16 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| See Also: | https://bugs.webkit.org/show_bug.cgi?id=157246 | ||
Found the issue. This issue does not manifest in the jsc shell but does on webpages. The reason is due a site specific quirk (introduced back in 2016) to work around the mathjs framework (at https://github.com/josdejong/mathjs) not supporting ES6 function names that can contain white space. See https://bugs.webkit.org/show_bug.cgi?id=157246. Now that mathjs no longer has the offending code, plus both Chrome and Firefox has caught up to the ES6 spec on this, it's time to remove this quirk. Pull request: https://github.com/WebKit/WebKit/pull/18612 Committed 268838@main (17d73b1570a4): <https://commits.webkit.org/268838@main> Reviewed commits have been landed. Closing PR #18612 and removing active labels. |
Object.values(({ "foo bar"() { } }))[0].name expected result should be "foo bar"