Enhance pointer type conversion

This commit is contained in:
pandamicro
2017-02-10 16:20:24 +08:00
parent e40c4ba878
commit 9ae7ed8d38
2 changed files with 2 additions and 2 deletions
@@ -400,7 +400,7 @@ jsval sptrackentry_to_jsval(JSContext* cx, spTrackEntry& v)
ok &= JS_SetProperty(cx, entry, "animationLast", val);
val.set(DOUBLE_TO_JSVAL(v.nextAnimationLast));
ok &= JS_SetProperty(cx, entry, "nextAnimationLast", val);
val.set(spanimation_to_jsval(cx, *v.animation));
val.set(v.animation == nullptr ? JSVAL_NULL : spanimation_to_jsval(cx, *v.animation));
ok &= JS_SetProperty(cx, entry, "animation", val);
if (ok)
Submodule native/tools/bindings-generator updated: 4eea234913...9fff9d2ffe