mirror of
https://github.com/oven-sh/bun
synced 2026-02-15 05:12:29 +00:00
* Fixes #3161 * Fix the error message * woops --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
@@ -391,8 +391,12 @@ JSC::SourceCode createCommonJSModule(
|
||||
// to pass to that and it isn't used directly much, so that
|
||||
// seems harder to do correctly.
|
||||
{
|
||||
globalObject->clearGlobalScopeExtension();
|
||||
|
||||
JSWithScope* withScope = JSWithScope::create(vm, globalObject, globalObject->globalScope(), scopeExtensionObject);
|
||||
vm.interpreter.executeEval(executable, globalObject, withScope);
|
||||
globalObject->setGlobalScopeExtension(withScope);
|
||||
vm.interpreter.executeEval(executable, globalObject, globalObject->globalScope());
|
||||
globalObject->clearGlobalScopeExtension();
|
||||
|
||||
if (UNLIKELY(catchScope.exception())) {
|
||||
auto returnedException = catchScope.exception();
|
||||
|
||||
Reference in New Issue
Block a user