Skip to content

Commit dbb3c14

Browse files
committed
Fix validate_type typo
1 parent 0207414 commit dbb3c14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

quickjs/quickjs_binder.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ bool QuickJSBinder::validate_type(JSContext *ctx, Variant::Type p_type, JSValueC
395395
return JS_IsArray(ctx, p_val);
396396
default: {
397397
ECMAScriptGCHandler *bind = BINDING_DATA_FROM_JS(ctx, p_val);
398-
return bind != NULL && bind->type == bind->type;
398+
return bind != NULL && bind->type == p_type;
399399
}
400400
}
401401
}

0 commit comments

Comments
 (0)