[PATCH 02/10] jscript: Store the necessary function and variable info in the script TypeInfo. (original) (raw)
Gabriel Ivăncescu gabrielopcode at gmail.com
Mon Dec 9 09:59:23 CST 2019
- Previous message (by thread): [PATCH 02/10] jscript: Store the necessary function and variable info in the script TypeInfo.
- Next message (by thread): [PATCH 03/10] jscript: Implement ScriptTypeInfo_GetTypeAttr.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 issourcefunction(jsdispt *jsdisp) +{ + return functionfromjsdisp(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 nativefunc = 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?
- Previous message (by thread): [PATCH 02/10] jscript: Store the necessary function and variable info in the script TypeInfo.
- Next message (by thread): [PATCH 03/10] jscript: Implement ScriptTypeInfo_GetTypeAttr.
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]