!17 fix lazyforeach onDateAdded is not function

Merge pull request !17 from seaside/master
This commit is contained in:
openharmony_ci
2021-10-26 12:23:10 +00:00
committed by Gitee
+1
View File
@@ -54542,6 +54542,7 @@ JSValue JS_AceNewInstance(JSContext *ctx, int classId, int argc, JSValueConst *a
JSValue proto = JS_GetClassProto(ctx, classId);
JSValue ctor = JS_GetProperty(ctx, proto, JS_ATOM_constructor);
JSValue newInst = JS_CallConstructor2(ctx, ctor, obj, argc, argv);
JS_SetPrototype(ctx, newInst, proto);
JS_FreeValue(ctx, ctor);
JS_FreeValue(ctx, proto);
JS_FreeValue(ctx, obj);