diff --git a/src/bun.js/WebKit b/src/bun.js/WebKit index a780bdf025..1a49a1f94b 160000 --- a/src/bun.js/WebKit +++ b/src/bun.js/WebKit @@ -1 +1 @@ -Subproject commit a780bdf0255ae1a7ed15e4b3f31c14af705facae +Subproject commit 1a49a1f94bf42ab4f8c6b11d7bbbb21e491d2d62 diff --git a/src/bun.js/bindings/BunProcess.cpp b/src/bun.js/bindings/BunProcess.cpp index 6fbc797cd9..fa341a653b 100644 --- a/src/bun.js/bindings/BunProcess.cpp +++ b/src/bun.js/bindings/BunProcess.cpp @@ -1,4 +1,4 @@ -#include "Process.h" +#include "BunProcess.h" #include "JavaScriptCore/InternalFieldTuple.h" #include "JavaScriptCore/JSMicrotask.h" #include "JavaScriptCore/ObjectConstructor.h" diff --git a/src/bun.js/bindings/ZigGlobalObject.cpp b/src/bun.js/bindings/ZigGlobalObject.cpp index 93f9a0fa21..36818b1fd9 100644 --- a/src/bun.js/bindings/ZigGlobalObject.cpp +++ b/src/bun.js/bindings/ZigGlobalObject.cpp @@ -94,7 +94,7 @@ #include "JSStringDecoder.h" #include "JSReadableState.h" #include "JSReadableHelper.h" -#include "Process.h" +#include "BunProcess.h" #include "AsyncContextFrame.h" #include "WebCoreJSBuiltins.h" diff --git a/src/bun.js/modules/BunJSCModule.h b/src/bun.js/modules/BunJSCModule.h index 74e745bade..8991c40010 100644 --- a/src/bun.js/modules/BunJSCModule.h +++ b/src/bun.js/modules/BunJSCModule.h @@ -27,7 +27,7 @@ #include "wtf/MemoryFootprint.h" #include "wtf/text/WTFString.h" -#include "Process.h" +#include "BunProcess.h" #include #if ENABLE(REMOTE_INSPECTOR) #include "JavaScriptCore/RemoteInspectorServer.h" diff --git a/src/codegen/helpers.ts b/src/codegen/helpers.ts index 6cd8917df6..4b708ceea5 100644 --- a/src/codegen/helpers.ts +++ b/src/codegen/helpers.ts @@ -53,6 +53,8 @@ export function checkAscii(str: string) { } export function writeIfNotChanged(file: string, contents: string) { + if (Array.isArray(contents)) contents = contents.join(""); + if (fs.existsSync(file)) { const oldContents = fs.readFileSync(file, "utf8"); if (oldContents === contents) { @@ -63,7 +65,7 @@ export function writeIfNotChanged(file: string, contents: string) { try { fs.writeFileSync(file, contents); } catch (error) { - fs.mkdirSync(path.dirname(file)); + fs.mkdirSync(path.dirname(file), { recursive: true }); fs.writeFileSync(file, contents); } } diff --git a/src/deps/libarchive b/src/deps/libarchive index 04be21ea4d..dc321febde 160000 --- a/src/deps/libarchive +++ b/src/deps/libarchive @@ -1 +1 @@ -Subproject commit 04be21ea4d973c2c80a1d456e0ea3fa3851e9174 +Subproject commit dc321febde83dd0f31158e1be61a7aedda65e7a2