mirror of
https://github.com/electron/electron.git
synced 2026-01-07 22:54:25 -05:00
* chore: upgrade Node.js to v24.10.0 * chore: fixup crypto patch * chore: fixup crypto test patch * src: prepare for v8 sandboxing https://github.com/nodejs/node/pull/58376 * esm: fix module.exports export on CJS modules https://github.com/nodejs/node/pull/57366 * chore: fixup lazyload fs patch * esm: Source Phase Imports for WebAssembly https://github.com/nodejs/node/pull/56919 * module: remove --experimental-default-type https://github.com/nodejs/node/pull/56092 * lib,src: refactor assert to load error source from memory https://github.com/nodejs/node/pull/59751 * src: add source location to v8::TaskRunner https://github.com/nodejs/node/pull/54077 * src: remove dependency on wrapper-descriptor-based CppHeap https://github.com/nodejs/node/pull/54077 * src: do not use soon-to-be-deprecated V8 API https://github.com/nodejs/node/pull/53174 * src: stop using deprecated fields of v8::FastApiCallbackOptions https://github.com/nodejs/node/pull/54077 * test: update v8-stats test for V8 12.6 https://github.com/nodejs/node/pull/54077 * esm: unflag --experimental-wasm-modules https://github.com/nodejs/node/pull/57038 * test: adapt assert tests to stack trace changes https://github.com/nodejs/node/pull/58070 * src,test: unregister the isolate after disposal and before freeing https://github.com/nodejs/node/pull/58070 * src: use cppgc to manage ContextifyContext https://github.com/nodejs/node/pull/56522 * src: replace uses of FastApiTypedArray https://github.com/nodejs/node/pull/58070 * module: integrate TypeScript into compile cache https://github.com/nodejs/node/pull/56629 * deps: update ada to 3.2.7 https://github.com/nodejs/node/pull/59336 * src: make minor cleanups in encoding_binding.cc https://github.com/nodejs/node/pull/57448 * src: switch from `Get/SetPrototype` to `Get/SetPrototypeV2` https://github.com/nodejs/node/pull/55453 * src: use non-deprecated Get/SetPrototype methods https://github.com/nodejs/node/pull/59671 * src: simplify string_bytes with views https://github.com/nodejs/node/pull/54876 * src: improve utf8 string generation performance https://github.com/nodejs/node/pull/54873 * src: use non-deprecated Utf8LengthV2() method https://github.com/nodejs/node/pull/58070 * src: use non-deprecated WriteUtf8V2() method https://github.com/nodejs/node/pull/58070 * src: refactor WriteUCS2 and remove flags argument https://github.com/nodejs/node/pull/58163 * src: use String::WriteV2() in TwoByteValue https://github.com/nodejs/node/pull/58164 * node-api: use WriteV2 in napi_get_value_string_utf16 https://github.com/nodejs/node/pull/58165 * node-api: use WriteOneByteV2 in napi_get_value_string_latin1 https://github.com/nodejs/node/pull/58325 * src: migrate WriteOneByte to WriteOneByteV2 https://github.com/nodejs/node/pull/59634 * fs: introduce dirent\.parentPath https://github.com/nodejs/node/pull/50976 * src: avoid copy by using std::views::keys https://github.com/nodejs/node/pull/56080 * chore: fixup patch indices * fix: errant use of context->GetIsolate() * fix: tweak BoringSSL compat patch for new changes * fix: add back missing isolate dtor declaration * fixup! esm: fix module.exports export on CJS modules * cli: remove --no-experimental-fetch flag https://github.com/nodejs/node/pull/52611/files * esm: Source Phase Imports for WebAssembly https://github.com/nodejs/node/pull/56919 * fixup! src: prepare for v8 sandboxing * chore: bump @types/node to v24 * chore: fix const assignment in crypto test * fix: sandbox pointer patch issues * chore: rework source phase import patch * src: add percentage support to --max-old-space-size https://github.com/nodejs/node/pull/59082 * chore: fixup crypto tests * chore: HostImportModuleWithPhaseDynamically todo * fix: cjs esm failures * fix: v8::Object::Wrappable issues -b72a615754-490bac2496-4896a0dd69* chore: remove deleted specs * src: use v8::ExternalMemoryAccounter https://github.com/nodejs/node/pull/58070 * fs: port SonicBoom module to fs module as FastUtf8Stream https://github.com/nodejs/node/pull/58897 * chore: tweak sandboxed pr patch * test: disable parallel/test-os-checked-function * test: use WHATWG URL instead of url.parse * fix: OPENSSL_secure_zalloc doesn't work in BoringSSL * chore: fix accidental extra line * 7017517: [defer-import-eval] Parse import defer syntax https://chromium-review.googlesource.com/c/v8/v8/+/7017517
129 lines
3.8 KiB
Diff
129 lines
3.8 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Calvin Watford <cwatford@slack-corp.com>
|
|
Date: Thu, 28 Mar 2024 14:28:19 -0600
|
|
Subject: fix: remove deprecated errno constants
|
|
|
|
Various errno constants were deprecated by POSIX. libc++ added deprecation markers on these constants.
|
|
|
|
This change removes the usage of these constants to fix a compilation failure due to mappings of those constants. This patch should be upstreamed to node/libuv.
|
|
|
|
See: https://github.com/llvm/llvm-project/pull/80542
|
|
|
|
diff --git a/deps/uv/include/uv.h b/deps/uv/include/uv.h
|
|
index 0295eeddbb4eb1cffd9dbcd02e037907fadc1b7e..7c2f9d2a8b13584ff6b33cd3ff4745e9fb3c4170 100644
|
|
--- a/deps/uv/include/uv.h
|
|
+++ b/deps/uv/include/uv.h
|
|
@@ -156,7 +156,6 @@ struct uv__queue {
|
|
XX(EFTYPE, "inappropriate file type or format") \
|
|
XX(EILSEQ, "illegal byte sequence") \
|
|
XX(ESOCKTNOSUPPORT, "socket type not supported") \
|
|
- XX(ENODATA, "no data available") \
|
|
XX(EUNATCH, "protocol driver not attached") \
|
|
XX(ENOEXEC, "exec format error") \
|
|
|
|
diff --git a/deps/uv/include/uv/errno.h b/deps/uv/include/uv/errno.h
|
|
index ac00778cfc59fb55e361b24fc81a965a5e8f97e7..f0c4d6dfc9f03bee59e656b2da9ac325bced7b69 100644
|
|
--- a/deps/uv/include/uv/errno.h
|
|
+++ b/deps/uv/include/uv/errno.h
|
|
@@ -456,18 +456,6 @@
|
|
# define UV__ESOCKTNOSUPPORT (-4025)
|
|
#endif
|
|
|
|
-/* FreeBSD defines ENODATA in /usr/include/c++/v1/errno.h which is only visible
|
|
- * if C++ is being used. Define it directly to avoid problems when integrating
|
|
- * libuv in a C++ project.
|
|
- */
|
|
-#if defined(ENODATA) && !defined(_WIN32)
|
|
-# define UV__ENODATA UV__ERR(ENODATA)
|
|
-#elif defined(__FreeBSD__)
|
|
-# define UV__ENODATA (-9919)
|
|
-#else
|
|
-# define UV__ENODATA (-4024)
|
|
-#endif
|
|
-
|
|
#if defined(EUNATCH) && !defined(_WIN32)
|
|
# define UV__EUNATCH UV__ERR(EUNATCH)
|
|
#else
|
|
diff --git a/src/node_constants.cc b/src/node_constants.cc
|
|
index fd28e0904d05e24e8eeb74fa36abd9727699a649..fea0426496978c0003fe1481afcf93fc9c23edca 100644
|
|
--- a/src/node_constants.cc
|
|
+++ b/src/node_constants.cc
|
|
@@ -242,10 +242,6 @@ void DefineErrnoConstants(Local<Object> target) {
|
|
NODE_DEFINE_CONSTANT(target, ENOBUFS);
|
|
#endif
|
|
|
|
-#ifdef ENODATA
|
|
- NODE_DEFINE_CONSTANT(target, ENODATA);
|
|
-#endif
|
|
-
|
|
#ifdef ENODEV
|
|
NODE_DEFINE_CONSTANT(target, ENODEV);
|
|
#endif
|
|
@@ -282,14 +278,6 @@ void DefineErrnoConstants(Local<Object> target) {
|
|
NODE_DEFINE_CONSTANT(target, ENOSPC);
|
|
#endif
|
|
|
|
-#ifdef ENOSR
|
|
- NODE_DEFINE_CONSTANT(target, ENOSR);
|
|
-#endif
|
|
-
|
|
-#ifdef ENOSTR
|
|
- NODE_DEFINE_CONSTANT(target, ENOSTR);
|
|
-#endif
|
|
-
|
|
#ifdef ENOSYS
|
|
NODE_DEFINE_CONSTANT(target, ENOSYS);
|
|
#endif
|
|
@@ -370,10 +358,6 @@ void DefineErrnoConstants(Local<Object> target) {
|
|
NODE_DEFINE_CONSTANT(target, ESTALE);
|
|
#endif
|
|
|
|
-#ifdef ETIME
|
|
- NODE_DEFINE_CONSTANT(target, ETIME);
|
|
-#endif
|
|
-
|
|
#ifdef ETIMEDOUT
|
|
NODE_DEFINE_CONSTANT(target, ETIMEDOUT);
|
|
#endif
|
|
diff --git a/src/node_errors.cc b/src/node_errors.cc
|
|
index ae8553ee2022d60fea4572976b14ba9cd253aa45..4386a1bc5678e351ce084cd2c47202561619b164 100644
|
|
--- a/src/node_errors.cc
|
|
+++ b/src/node_errors.cc
|
|
@@ -862,10 +862,6 @@ const char* errno_string(int errorno) {
|
|
ERRNO_CASE(ENOBUFS);
|
|
#endif
|
|
|
|
-#ifdef ENODATA
|
|
- ERRNO_CASE(ENODATA);
|
|
-#endif
|
|
-
|
|
#ifdef ENODEV
|
|
ERRNO_CASE(ENODEV);
|
|
#endif
|
|
@@ -904,14 +900,6 @@ const char* errno_string(int errorno) {
|
|
ERRNO_CASE(ENOSPC);
|
|
#endif
|
|
|
|
-#ifdef ENOSR
|
|
- ERRNO_CASE(ENOSR);
|
|
-#endif
|
|
-
|
|
-#ifdef ENOSTR
|
|
- ERRNO_CASE(ENOSTR);
|
|
-#endif
|
|
-
|
|
#ifdef ENOSYS
|
|
ERRNO_CASE(ENOSYS);
|
|
#endif
|
|
@@ -994,10 +982,6 @@ const char* errno_string(int errorno) {
|
|
ERRNO_CASE(ESTALE);
|
|
#endif
|
|
|
|
-#ifdef ETIME
|
|
- ERRNO_CASE(ETIME);
|
|
-#endif
|
|
-
|
|
#ifdef ETIMEDOUT
|
|
ERRNO_CASE(ETIMEDOUT);
|
|
#endif
|