Compare commits

...

3 Commits

Author SHA1 Message Date
Meghan Denny
62d9047c7b Merge branch 'main' into nektro-patch-13 2024-11-19 23:13:59 -08:00
Meghan Denny
e20543d751 Merge branch 'main' into nektro-patch-13 2024-11-19 18:44:42 -08:00
Meghan Denny
1033ffde66 bindings: assert JSValue.call is not called on zero value 2024-10-25 16:44:20 -07:00

View File

@@ -2388,6 +2388,8 @@ extern "C" JSC__JSValue Bun__JSValue__call(JSContextRef ctx, JSC__JSValue object
ASSERT_WITH_MESSAGE(!vm.isCollectorBusyOnCurrentThread(), "Cannot call function inside a finalizer or while GC is running on same thread.");
ASSERT(object);
JSC::JSValue jsObject = JSValue::decode(object);
ASSERT(jsObject);