diff options
Diffstat (limited to 'src/bun.js/bindings/CallSite.cpp')
-rw-r--r-- | src/bun.js/bindings/CallSite.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bun.js/bindings/CallSite.cpp b/src/bun.js/bindings/CallSite.cpp index 48fe82275..7667d9606 100644 --- a/src/bun.js/bindings/CallSite.cpp +++ b/src/bun.js/bindings/CallSite.cpp @@ -45,7 +45,7 @@ void CallSite::finishCreation(VM& vm, JSC::JSGlobalObject* globalObject, JSCStac m_function.set(vm, this, JSC::jsUndefined()); m_flags |= static_cast<unsigned int>(Flags::IsStrict); } else { - if (callFrame) { + if (callFrame && callFrame->thisValue()) { // We know that we're not in strict mode m_thisValue.set(vm, this, callFrame->thisValue().toThis(globalObject, JSC::ECMAMode::sloppy())); } else { |