mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
* chore: bump node in DEPS to v24.15.0 * fix(patch): adapt V8 sandboxed pointers for buffer kMaxLength Upstream replaced the hardcoded buffer length limit with a runtime kMaxLength variable, making the patch's regex workaround for sandbox vs non-sandbox limits unnecessary. Dropped the test-buffer-concat.js hunk. Ref: https://github.com/nodejs/node/pull/61721 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(patch): adapt deprecated GetIsolate for upstream refactors Upstream removed Uint32ToName from node_contextify.cc and node_webstorage.cc, and renamed LookupAndCompile to LookupAndCompileFunction in node_builtins.cc. Updated the GetIsolate deprecation patch to match. Ref: https://github.com/nodejs/node/pull/60846 Ref: https://github.com/nodejs/node/pull/60518 * chore: remove upstreamed patch The fix_generate_config_gypi_needs_to_generate_valid_json patch applied with "No changes -- Patch already applied", confirming the fix has been incorporated upstream. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * node#60518: src: build v8 tick processor as built-in source text modules Upstream restructured BuiltinLoader to auto-detect parameters by source type, removing the custom parameters overload. Added a new LookupAndCompileFunction overload for embedder scripts and updated node_util.cc to use it. Also suppressed exit-time-destructors warning from builtin_info.h in node_includes.h. Ref: https://github.com/nodejs/node/pull/60518 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(patch): add LookupAndCompileFunction overload for embedder scripts Ref: https://github.com/nodejs/node/pull/60518 * fix(patch): stop using v8::PropertyCallbackInfo<T>::This() in sqlite Ref: https://github.com/nodejs/node/issues/60616 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(patch): adapt new crypto tests for BoringSSL Guard aes-128-ccm test in test-crypto-authenticated.js behind cipher availability check. Skip Ed448/X448/DSA tests in test-crypto-key-objects-raw.js. Skip AES-KW tests in test-webcrypto-promise-prototype-pollution.mjs. Ref: https://github.com/nodejs/node/pull/62240 Ref: https://github.com/nodejs/node/pull/62455 * fix(patch): guard DH key test for BoringSSL BoringSSL does not support loading DH private keys from PEM, causing createPrivateKey to throw UNSUPPORTED_ALGORITHM. Ref: https://github.com/nodejs/node/pull/62240 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> * fix(patch): correct thenable snapshot for Chromium V8 The snapshot used `*` wildcards which don't match the actual output. Regenerated with NODE_REGENERATE_SNAPSHOTS=1 to capture the correct concrete frame + <node-internal-frames> output. Ref: https://chromium-review.googlesource.com/c/v8/v8/+/6826001 * fix(patch): GN build files for new merve dep Ref: https://github.com/nodejs/node/pull/61984 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * fix(patch): adapt fileExists patch to resolve.js module reorg Ref: https://github.com/nodejs/node/pull/61769 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> * chore: update patches (trivial only) Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> --------- Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: Shelley Vohr <shelley.vohr@gmail.com> Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
47 lines
1.3 KiB
C
47 lines
1.3 KiB
C
// Copyright (c) 2013 GitHub, Inc.
|
|
// Use of this source code is governed by the MIT license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef ELECTRON_SHELL_COMMON_NODE_INCLUDES_H_
|
|
#define ELECTRON_SHELL_COMMON_NODE_INCLUDES_H_
|
|
|
|
// Include common headers for using node APIs.
|
|
|
|
#ifdef NODE_SHARED_MODE
|
|
#define BUILDING_NODE_EXTENSION
|
|
#endif
|
|
|
|
#undef debug_string // This is defined in macOS SDK in AssertMacros.h.
|
|
#undef require_string // This is defined in macOS SDK in AssertMacros.h.
|
|
|
|
#include "electron/push_and_undef_node_defines.h"
|
|
|
|
#pragma clang diagnostic push
|
|
#pragma clang diagnostic ignored "-Wexit-time-destructors"
|
|
|
|
#include "env-inl.h"
|
|
#include "env.h"
|
|
#include "node.h"
|
|
#include "node_buffer.h"
|
|
#include "node_builtins.h"
|
|
#include "node_errors.h"
|
|
#include "node_internals.h"
|
|
#include "node_object_wrap.h"
|
|
#include "node_options-inl.h"
|
|
#include "node_options.h"
|
|
#include "node_platform.h"
|
|
#include "node_report.h"
|
|
#include "tracing/agent.h"
|
|
|
|
#pragma clang diagnostic pop
|
|
|
|
#include "electron/pop_node_defines.h"
|
|
|
|
// Alternative to NODE_BINDING_CONTEXT_AWARE_X.
|
|
// Allows to explicitly register builtin bindings instead of using
|
|
// __attribute__((constructor)).
|
|
#define NODE_LINKED_BINDING_CONTEXT_AWARE(modname, regfunc) \
|
|
NODE_BINDING_CONTEXT_AWARE_CPP(modname, regfunc, nullptr, NM_F_LINKED)
|
|
|
|
#endif // ELECTRON_SHELL_COMMON_NODE_INCLUDES_H_
|