mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 06:17:35 +00:00
LibJS: Call HostEnsureCanCompileStrings in PerformShadowRealmEval
We now do have this host-defined abstract operation :^)
This commit is contained in:
parent
fed1498824
commit
5f253988ef
1 changed files with 2 additions and 1 deletions
|
@ -97,8 +97,9 @@ ThrowCompletionOr<Value> perform_shadow_realm_eval(GlobalObject& global_object,
|
||||||
{
|
{
|
||||||
auto& vm = global_object.vm();
|
auto& vm = global_object.vm();
|
||||||
|
|
||||||
|
// FIXME: Needs to be updated to latest ECMA-262. See: https://github.com/tc39/proposal-shadowrealm/issues/367
|
||||||
// 1. Perform ? HostEnsureCanCompileStrings(callerRealm, evalRealm).
|
// 1. Perform ? HostEnsureCanCompileStrings(callerRealm, evalRealm).
|
||||||
// FIXME: We don't have this host-defined abstract operation yet.
|
TRY(vm.host_ensure_can_compile_strings(eval_realm));
|
||||||
|
|
||||||
// 2. Perform the following substeps in an implementation-defined order, possibly interleaving parsing and error detection:
|
// 2. Perform the following substeps in an implementation-defined order, possibly interleaving parsing and error detection:
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue