On 12/9/19 5:24 PM, Gabriel Ivăncescu wrote:
On 12/9/19 4:56 PM, Jacek Caban wrote:
On 12/9/19 3:01 PM, Gabriel Ivăncescu wrote:
+BOOL is_source_function(jsdisp_t *jsdisp) +{ + return function_from_jsdisp(jsdisp)->vtbl == &InterpretedFunctionVtbl; +}
I'm not sure about that, are native functions really not treated as functions? It should be easy to test with something like:
var native_func = decodeURI;
Thanks,
Jacek
Ok, I'll see about the tests, but I was actually more worried about how to get the args and their names for native functions (didn't know how).
Looks like indeed native functions are completely ignored: they don't show up as variables, either.
So do I keep this patch it as-is?