lightpanda-io / zig-js-runtime

Add a JS runtime in your Zig project
https://lightpanda.io
Apache License 2.0
16 stars 0 forks source link

v8 crashes when an js obj argument isn't an expected native object #187

Closed krichprollsch closed 8 months ago

krichprollsch commented 8 months ago

When passing a {} js obj instead of a native object, v8 crashes:

#                                                                                                                                             
# Fatal error in v8::Object::GetInternalField()                                                                                               
# Internal field out of bounds                                                                                                                
#    

We expect a TypeError instead.