See https://github.com/tc39/proposal-dynamic-code-brand-checks/issues/19 To work with that proposal, it's possible that PerformShadowRealmEval should be tweaked in a way similar to PerformEval at https://tc39.es/proposal-dynamic-code-brand-checks/#sec-performeval