We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cfb4c8 commit 0678741Copy full SHA for 0678741
Userland/Libraries/LibJS/Runtime/FunctionEnvironmentRecord.cpp
@@ -70,7 +70,7 @@ Value FunctionEnvironmentRecord::get_this_binding(GlobalObject& global_object) c
70
// 9.1.1.3.1 BindThisValue ( V ), https://tc39.es/ecma262/#sec-bindthisvalue
71
Value FunctionEnvironmentRecord::bind_this_value(GlobalObject& global_object, Value this_value)
72
{
73
- VERIFY(has_this_binding());
+ VERIFY(this_binding_status() != ThisBindingStatus::Lexical);
74
if (this_binding_status() == ThisBindingStatus::Initialized) {
75
vm().throw_exception<ReferenceError>(global_object, ErrorType::ThisIsAlreadyInitialized);
76
return {};
0 commit comments