// 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
<rdar://problem/102064989>
This is Function#toString thing feature, which is not implemented. *** This bug has been marked as a duplicate of bug 247437 ***