WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 247437
247438
`toString` of a named function is wrong
https://bugs.webkit.org/show_bug.cgi?id=247438
Summary
`toString` of a named function is wrong
Kanguk Lee
Reported
2022-11-03 09:19:47 PDT
// 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
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2022-11-07 16:27:44 PST
<
rdar://problem/102064989
>
Yusuke Suzuki
Comment 2
2022-11-10 10:50:23 PST
This is Function#toString thing feature, which is not implemented. *** This bug has been marked as a duplicate of
bug 247437
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug