workerd
workerd copied to clipboard
🐛 Bug Report — Runtime APIs
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