From 2eb2c2c3f038b49fc9ff4b36abc7fffcbcbc43ae Mon Sep 17 00:00:00 2001 From: Witold Filipczyk Date: Sat, 29 Jun 2024 08:54:09 +0200 Subject: [PATCH] [quickjs] No dataset.toString --- src/ecmascript/quickjs/dataset.c | 17 +---------------- 1 file changed, 1 insertion(+), 16 deletions(-) diff --git a/src/ecmascript/quickjs/dataset.c b/src/ecmascript/quickjs/dataset.c index 55b6f3963..fb0903cc6 100644 --- a/src/ecmascript/quickjs/dataset.c +++ b/src/ecmascript/quickjs/dataset.c @@ -190,21 +190,6 @@ js_obj_set_property(JSContext *ctx, JSValueConst obj, JSAtom atom, JSValueConst return 1; } -static JSValue -js_dataset_toString(JSContext *ctx, JSValueConst this_val, int argc, JSValueConst *argv) -{ -#ifdef ECMASCRIPT_DEBUG - fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__); -#endif - REF_JS(this_val); - - return JS_NewString(ctx, "[dataset object]"); -} - -static const JSCFunctionListEntry js_dataset_proto_funcs[] = { - JS_CFUNC_DEF("toString", 0, js_dataset_toString) -}; - static JSClassExoticMethods exo = { .delete_property = js_obj_delete_property, // .has_property = js_obj_has_property, @@ -235,7 +220,7 @@ getDataset(JSContext *ctx, void *node) JSValue proto = JS_NewObjectClass(ctx, js_dataset_class_id); REF_JS(proto); - JS_SetPropertyFunctionList(ctx, proto, js_dataset_proto_funcs, countof(js_dataset_proto_funcs)); +// JS_SetPropertyFunctionList(ctx, proto, js_dataset_proto_funcs, countof(js_dataset_proto_funcs)); JS_SetClassProto(ctx, js_dataset_class_id, proto); dom_node_ref(node); JS_SetOpaque(proto, node);