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 in strict mode due to setter undefined return #222

Closed krichprollsch closed 5 months ago

krichprollsch commented 5 months ago

In strict mode, when we try to set a native property ~on a JS const var,~ v8 crashes.

Fatal error in ../../../../v8/src/objects/objects.cc, line 1529
Debug check failed: result->BooleanValue(isolate) || GetShouldThrow(isolate, maybe_should_throw) == kDontThrow.

Relates with https://github.com/lightpanda-io/browsercore/issues/150