Closed caridy closed 2 years ago
In case it is helpful, what I did in my implementation to work around the spec bug is simply Return result.
:
I was assuming that:
OrdinaryWrappedFunctionCall
would be completely dropped in favor of returning undefined
ReturnIfAbrupt
This implementation of ShadowRealm passes all 64 tests currently present in test262: https://libjs.dev/test262/per-file/?path=test/built-ins/ShadowRealm
So in case the desired behaviour is something else, that is currently not covered by tests (or unobservable).
@rwaldron PTAL at the referred test262.
cc @linusg