workerd icon indicating copy to clipboard operation
workerd copied to clipboard

🐛 Bug Report — Runtime APIs

Open rdvo opened this issue 1 year ago • 0 comments

passing a function through doesn't pass the comments '/// comments here' function test(input: string) { // this is a function }

async run(fn: Function) { return fn }

console.log(run(test))

so basically it will return the function but not the //comments

on node it shows the comments, is this by design?

seems like they get stripped out on workerd

rdvo avatar Jun 05 '24 02:06 rdvo