diff --git a/Userland/Libraries/LibJS/Bytecode/Op.cpp b/Userland/Libraries/LibJS/Bytecode/Op.cpp index 78a8473b28fc976..97805cd14c02fca 100644 --- a/Userland/Libraries/LibJS/Bytecode/Op.cpp +++ b/Userland/Libraries/LibJS/Bytecode/Op.cpp @@ -643,10 +643,7 @@ ThrowCompletionOr ResolveSuperBase::execute_impl(Bytecode::Interpreter& in VERIFY(env.has_super_binding()); // 3. Let baseValue be ? env.GetSuperBase(). - auto base_value = TRY(env.get_super_base()); - - // 4. Let bv be ? RequireObjectCoercible(baseValue). - interpreter.accumulator() = TRY(require_object_coercible(vm, base_value)); + interpreter.accumulator() = TRY(env.get_super_base()); return {}; } diff --git a/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp b/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp index 123405fa337f3f3..dbd61a2b8998f37 100644 --- a/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp +++ b/Userland/Libraries/LibJS/Runtime/AbstractOperations.cpp @@ -513,11 +513,8 @@ ThrowCompletionOr make_super_property_reference(VM& vm, Value actual_ // 3. Let baseValue be ? env.GetSuperBase(). auto base_value = TRY(env.get_super_base()); - // 4. Let bv be ? RequireObjectCoercible(baseValue). - auto bv = TRY(require_object_coercible(vm, base_value)); - - // 5. Return the Reference Record { [[Base]]: bv, [[ReferencedName]]: propertyKey, [[Strict]]: strict, [[ThisValue]]: actualThis }. - return Reference { bv, property_key, actual_this, strict }; + // 4. Return the Reference Record { [[Base]]: baseValue, [[ReferencedName]]: propertyKey, [[Strict]]: strict, [[ThisValue]]: actualThis }. + return Reference { base_value, property_key, actual_this, strict }; } // 19.2.1.1 PerformEval ( x, strictCaller, direct ), https://tc39.es/ecma262/#sec-performeval