[Webkit-unassigned] [Bug 247438] New: `toString` of a named function is wrong
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Nov 3 09:19:47 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=247438
Bug ID: 247438
Summary: `toString` of a named function is wrong
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: p51lee at kaist.ac.kr
// input.js
print (
String(function f () {})
);
__________________________
Hello,
The space between `f` and `()` should be retained in the result of toString of the generator function, but JSC removes all the space between them.
Running the input.js with JSC prints
---
$ jsc input.js
f() {}
---
while other engines behave like
---
# V8 (used console.log)
$ node input.js
f () {}
# GraalJS
$ js input.js
f () {}
---
WebKit version: 615.1.10
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221103/f8fbbbf4/attachment-0001.htm>
More information about the webkit-unassigned
mailing list