diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2025-04-21 11:52:42 +0200 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2025-04-21 11:52:42 +0200 |
commit | 000db3aab3efc46274182237d444bfd63a65dfc6 (patch) | |
tree | 609d032c57ef0008dbf96bd35b361d3301970485 | |
parent | db3d3f09cdec7106d6e330aa1eb3fae50ed8fdc4 (diff) | |
download | quickjs-000db3aab3efc46274182237d444bfd63a65dfc6.tar.gz quickjs-000db3aab3efc46274182237d444bfd63a65dfc6.zip |
the %TypedArray% Intrinsic Object should be a constructor
-rw-r--r-- | quickjs.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -54253,8 +54253,8 @@ void JS_AddIntrinsicTypedArrays(JSContext *ctx) JS_DefinePropertyValue(ctx, typed_array_base_proto, JS_ATOM_toString, obj, JS_PROP_WRITABLE | JS_PROP_CONFIGURABLE); - typed_array_base_func = JS_NewCFunction(ctx, js_typed_array_base_constructor, - "TypedArray", 0); + typed_array_base_func = JS_NewCFunction2(ctx, js_typed_array_base_constructor, + "TypedArray", 0, JS_CFUNC_constructor_or_func, 0); JS_SetPropertyFunctionList(ctx, typed_array_base_func, js_typed_array_base_funcs, countof(js_typed_array_base_funcs)); |