mirror of
https://github.com/oven-sh/bun
synced 2026-02-13 04:18:58 +00:00
Process -> BunProcess
This commit is contained in:
Submodule src/bun.js/WebKit updated: a780bdf025...1a49a1f94b
@@ -1,4 +1,4 @@
|
||||
#include "Process.h"
|
||||
#include "BunProcess.h"
|
||||
#include "JavaScriptCore/InternalFieldTuple.h"
|
||||
#include "JavaScriptCore/JSMicrotask.h"
|
||||
#include "JavaScriptCore/ObjectConstructor.h"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
#include "wtf/MemoryFootprint.h"
|
||||
#include "wtf/text/WTFString.h"
|
||||
|
||||
#include "Process.h"
|
||||
#include "BunProcess.h"
|
||||
#include <JavaScriptCore/SourceProviderCache.h>
|
||||
#if ENABLE(REMOTE_INSPECTOR)
|
||||
#include "JavaScriptCore/RemoteInspectorServer.h"
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Submodule src/deps/libarchive updated: 04be21ea4d...dc321febde
Reference in New Issue
Block a user