mirror of
https://github.com/oven-sh/bun
synced 2026-02-16 05:42:43 +00:00
Fix crash with path parse in win32 (#3187)
* Update CommonJSModuleRecord.cpp * smaller * [node:path] Fix crash, mark TODO --------- Co-authored-by: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
This commit is contained in:
@@ -392,7 +392,7 @@ JSC::SourceCode createCommonJSModule(
|
||||
// seems harder to do correctly.
|
||||
{
|
||||
// We must use a global scope extension or else the JSWithScope will be collected unexpectedly.
|
||||
// https://github.com/oven-sh/issues/3161
|
||||
// https://github.com/oven-sh/bun/issues/3161
|
||||
globalObject->clearGlobalScopeExtension();
|
||||
|
||||
JSWithScope* withScope = JSWithScope::create(vm, globalObject, globalObject->globalScope(), scopeExtensionObject);
|
||||
|
||||
Reference in New Issue
Block a user