You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
krichprollsch
changed the title
getNativeObject: ensure the js value corresponds to the expected type
getNativeObject: ensure the js objest corresponds to the expected native type
Jan 19, 2024
krichprollsch
changed the title
getNativeObject: ensure the js objest corresponds to the expected native type
getNativeObject: ensure the js object corresponds to the expected native type
Jan 26, 2024
getNativeObject
doesn't check if the given js object corresponds to the expected native type.Indeed, if we pass
Car
js object instead of aBrand
,getNativeObject
casts a nativeCar
pointer as aBrand
native object, leading to unknown behavior.See https://github.com/lightpanda-io/jsruntime-lib/blob/main/src/engines/v8/generate.zig#L727
To ways are possible to do the check:
The text was updated successfully, but these errors were encountered: