Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow host functions to be treated as constructors #220

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion c/interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1069,7 +1069,7 @@ JSValue *QTS_NewFunction(JSContext *ctx, uint32_t func_id, const char *name) {
/* JSCFunctionMagic* */ &qts_call_function,
/* name */ name,
/* min argc */ 0,
/* function type */ JS_CFUNC_generic_magic,
/* function type */ JS_CFUNC_constructor_or_func_magic,
/* magic: fn id */ func_id);
return jsvalue_to_heap(func_obj);
}
Expand Down