mirror of
https://github.com/openharmony/third_party_quickjs.git
synced 2026-07-01 21:03:59 -04:00
fix hmf build
Signed-off-by: sunfei <sunfei.sun@huawei.com> Change-Id: I7b0d7caba999700d3b42c2e7c5f5320cb7d482a5
This commit is contained in:
@@ -54488,19 +54488,12 @@ JSValue JS_JsonStringify(JSContext *ctx, JSValueConst this_val, int argc, JSValu
|
||||
#endif
|
||||
|
||||
/* for ace 2.0 */
|
||||
/*int JS_CountClassInstances(JSRuntime* rt, uint16_t class_id)
|
||||
int JS_CountClassInstances(JSRuntime* rt, uint16_t class_id)
|
||||
{
|
||||
int count = 0;
|
||||
struct list_head* el;
|
||||
list_for_each(el, &rt->obj_list)
|
||||
{
|
||||
JSObject* p = list_entry(el, JSObject, link);
|
||||
if (p->class_id == class_id) {
|
||||
count++;
|
||||
}
|
||||
}
|
||||
// TODO: should implement in new version
|
||||
return count;
|
||||
}*/
|
||||
}
|
||||
|
||||
void *JS_GetOpaqueA(JSValueConst obj,
|
||||
JSClassID* class_ids, size_t class_id_len)
|
||||
|
||||
Reference in New Issue
Block a user