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
There are a small but non-zero number of native functions that we implement using OldNativeFunction (via createNativeFunction), including String.prototype.localeCompare that can throw (native) errors when given invalid arguments. This will cause the interpreter to crash.
These should probably ultimately be rewritten as (new) NativeFunctions, but in the interim OldNativeFunction.prototype.call and .construct should catch any native thrown by this.impl.apply(…) and rethrow the corresponding pseudo error generated by applying errorNativeToPseudo.
There are a small but non-zero number of native functions that we implement using
OldNativeFunction
(viacreateNativeFunction
), includingString.prototype.localeCompare
that can throw (native) errors when given invalid arguments. This will cause the interpreter to crash.These should probably ultimately be rewritten as (new)
NativeFunction
s, but in the interimOldNativeFunction.prototype.call
and.construct
should catch any native thrown bythis.impl.apply(…)
and rethrow the corresponding pseudo error generated by applyingerrorNativeToPseudo
.This is somewhat related to #456.
The text was updated successfully, but these errors were encountered: