Intersection with ShadowRealm API proposal
There is a PerformShadowRealmEval operation defined here:
https://tc39.es/proposal-shadowrealm/#sec-performshadowrealmeval
At minimum, the HostEnsureCanCompileStrings call will need to be tweaked to pass the new parameters defined in the Dynamic Code Brand Checks spec.
We might also want PerformShadowRealmEval to accept sourceText as Object and try to convert them to String using HostGetCodeForEval, but I'm not sure.
cc @koto
I think at this point we should move this issue to the shadow realms proposal.
This proposal is almost stage 4 and ready to merge (afaik it's once WebKit ships TT to stable)
Thanks for opening https://github.com/tc39/proposal-shadowrealm/issues/414.