mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Convert undefined to NULL on tree entry if the tree wants an object type.
This commit is contained in:
parent
ed7fab1440
commit
2e767b124c
@ -905,6 +905,10 @@ ValueToNative(JSContext* cx, jsval v, uint8 type, double* slot)
|
||||
return true;
|
||||
default:
|
||||
JS_ASSERT(type == JSVAL_OBJECT);
|
||||
if (v == JSVAL_VOID) {
|
||||
*(JSObject**)slot = NULL;
|
||||
return true;
|
||||
}
|
||||
if (tag != JSVAL_OBJECT) {
|
||||
debug_only_v(printf("object != tag%u ", tag);)
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user