Hi,
First and foremost, I just wanted to say thank you for this wonderful library (and to @bellard for the original)!
Prior to the recent commit #1195 I was setting the name property on JS_NewCFunctionData functions manually. JS_NewCFunctionData2 is much nicer, so thank you very much for that.
If you throw an error from a CFunctionData, you'll see that it's not included in the stack trace (whatever called it will be the first line). Even with the name field correctly set, functions defined this way are still being omitted from stack traces.
Thank you.
Hi,
First and foremost, I just wanted to say thank you for this wonderful library (and to @bellard for the original)!
Prior to the recent commit #1195 I was setting the name property on JS_NewCFunctionData functions manually. JS_NewCFunctionData2 is much nicer, so thank you very much for that.
If you throw an error from a CFunctionData, you'll see that it's not included in the stack trace (whatever called it will be the first line). Even with the name field correctly set, functions defined this way are still being omitted from stack traces.
Thank you.