diff --git a/src/ecmascript/quickjs/attr.c b/src/ecmascript/quickjs/attr.c index a712e2317..8c9d542fe 100644 --- a/src/ecmascript/quickjs/attr.c +++ b/src/ecmascript/quickjs/attr.c @@ -129,7 +129,7 @@ static const JSCFunctionListEntry js_attr_proto_funcs[] = { JS_CFUNC_DEF("toString", 0, js_attr_toString) }; -static std::map map_attrs; +static std::map map_attrs; static void js_attr_finalizer(JSRuntime *rt, JSValue val) @@ -145,7 +145,7 @@ static JSClassDef js_attr_class = { }; JSValue -getAttr(JSContext *ctx, const void *node) +getAttr(JSContext *ctx, void *node) { #ifdef ECMASCRIPT_DEBUG fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__); diff --git a/src/ecmascript/quickjs/attr.h b/src/ecmascript/quickjs/attr.h index c86ab71ba..e35fdffbf 100644 --- a/src/ecmascript/quickjs/attr.h +++ b/src/ecmascript/quickjs/attr.h @@ -3,6 +3,6 @@ #include -JSValue getAttr(JSContext *ctx, const void *node); +JSValue getAttr(JSContext *ctx, void *node); #endif diff --git a/src/ecmascript/quickjs/element.c b/src/ecmascript/quickjs/element.c index fcae5ba79..c1531fc99 100644 --- a/src/ecmascript/quickjs/element.c +++ b/src/ecmascript/quickjs/element.c @@ -1767,7 +1767,7 @@ static const JSCFunctionListEntry js_element_proto_funcs[] = { JS_CFUNC_DEF("toString", 0, js_element_toString) }; -static std::map map_elements; +static std::map map_elements; static void js_element_finalizer(JSRuntime *rt, JSValue val) @@ -1834,7 +1834,7 @@ js_element_init(JSContext *ctx) JSValue -getElement(JSContext *ctx, const void *node) +getElement(JSContext *ctx, void *node) { #ifdef ECMASCRIPT_DEBUG fprintf(stderr, "%s:%s\n", __FILE__, __FUNCTION__); diff --git a/src/ecmascript/quickjs/element.h b/src/ecmascript/quickjs/element.h index 316b74647..5ad3cd59e 100644 --- a/src/ecmascript/quickjs/element.h +++ b/src/ecmascript/quickjs/element.h @@ -3,7 +3,7 @@ #include -JSValue getElement(JSContext *ctx, const void *node); +JSValue getElement(JSContext *ctx, void *node); int js_element_init(JSContext *ctx); void walk_tree(struct string *buf, void *nod, bool start = true, bool toSortAttrs = false);