Repository navigation
test: remove test-buffer-bytelength-safe-fast.js - #67897
Merged
Merged
Conversation
This test makes too many assumptions about how strings in V8 is represented and optimized, which can easily get broken by V8 updates. Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com>
Member
Author
|
cc @ronag |
ronag
approved these changes
Nov 30, 2026
legendecas
approved these changes
Nov 30, 2026
Collaborator
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #67897 +/- ##
==========================================
- Coverage 90.58% 90.58% -0.01%
==========================================
Files 802 802
Lines 286659 286659
Branches 55370 55368 -2
==========================================
- Hits 259676 259661 -15
- Misses 17083 17088 +5
- Partials 9900 9910 +10 🚀 New features to boost your workflow:
|
Renegade334
approved these changes
Nov 30, 2026
lpinca
approved these changes
Dec 1, 2026
Collaborator
|
Landed in b53e7a5 |
jkleinsc
added a commit
to electron/electron
that referenced
this pull request
Dec 2, 2026
…n Turboshaft Turboshaft now deoptimizes, instead of calling the slow callback, when a kSeqOneByteString fast API parameter receives another kind of string. test-buffer-bytelength-safe-fast relied on the old behavior, so backport the upstream removal of the test (nodejs/node#67897). Ref: https://chromium-review.googlesource.com/c/v8/v8/+/8803935 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
jkleinsc
added a commit
to electron/electron
that referenced
this pull request
Dec 3, 2026
* chore: bump chromium in DEPS to 160.0.8183.0 * 7848641: [webauthn] Add Permissions API plumbing for remoteClientDataJSON Upstream added PUBLIC_KEY_CREDENTIALS_REMOTE_CLIENT_DATA_JSON = 47 to blink::PermissionType and the matching PermissionName, so Electron's DEPRECATED_SYNC_CLIPBOARD_READ / ELECTRON_FIRST move to 48 and the Electron cases slot in after the new upstream ones. While here, drop the duplicate GEOLOCATION_APPROXIMATE cases the clipboard patch re-added (upstream already handles them) and tidy the run-on case lines, so each patch compiles on its own again. Ref: https://chromium-review.googlesource.com/c/chromium/src/+/7848641 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * 8848639: [objects] Visit JSPromise embedder fields via VisitCppHeapPointer Upstream widened the DCHECK in Serializer::ObjectSerializer:: VisitCppHeapPointer to JSObject::MayHaveEmbedderFields, which is exactly what fix_allow_embedder_slots_of_non-api_objects_in_snapshot.patch did, so remove the now-upstreamed patch. Ref: https://chromium-review.googlesource.com/c/v8/v8/+/8848639 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * chore: update libc++ filenames * chore: update patches * 8821061: Change WebUIExtension to be an instance per RenderFrame Upstream made WebUIExtension a RenderFrameObserver with a WillReleaseScriptContext override, so it needs the isolate parameter that chore_expose_isolate_parameter_in_script_lifecycle_observers.patch adds to that hook. Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8821061 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * 8839607: Remove static pointer tables from WebKit font family prefs Upstream deleted pref_font_script_names-inl.h and the WEBKIT_WEBPREFS_FONTS_* macros. Build the per-script pref names from prefs::kWebKitScriptsForFontFamilyMaps and the family map names instead, the same way prefs_tab_helper.cc now does. Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8839607 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * 8846368: base: Remove out-parameter Base64UrlEncode() overloads Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8846368 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * 8832168: [webauthn] Migrate response transports to FidoTransportProtocolSet Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8832168 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NayLZmJJv2PCUyprP4YX1L * 8775587: [inspector] Remove AllowJavascriptExecutionScope from dispatch Runtime.evaluate dispatched from a V8 API interrupt now hits the DisallowJavascriptExecution check that Electron enables, so test-inspector-dom-storage-interrupt aborted when it used evaluate to stop the child's busy loop. Stop the loop through a file instead and read the call count from console output. Ref: https://chromium-review.googlesource.com/c/v8/v8/+/8775587 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NayLZmJJv2PCUyprP4YX1L * chore: bump chromium in DEPS to 160.0.8184.0 * chore: update patches Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NayLZmJJv2PCUyprP4YX1L * fixup! 8775587: [inspector] Remove AllowJavascriptExecutionScope from dispatch Runtime.evaluate and other methods that run JavaScript still aborted the process when they reached Node's inspector from a V8 API interrupt. Like Blink's ShouldInterruptForMethod(), dispatch only an allow-list of methods that never run JavaScript from the interrupt, and defer the rest of a session's messages, in order, until the thread yields. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NayLZmJJv2PCUyprP4YX1L * fixup! 8775587: [inspector] Remove AllowJavascriptExecutionScope from dispatch Let Debugger.pause and Runtime.terminateExecution overtake a session's deferred messages, as Blink does on its IO channel, so a frontend that sent Runtime.evaluate during a busy loop can still pause or terminate it. Document that attaching to an already stuck process cannot pause it while Debugger.enable is deferred. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NayLZmJJv2PCUyprP4YX1L * chore: bump chromium in DEPS to 160.0.8185.0 * chore: update patches * 8863584: Remove temporary raw_ptr container traits Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8863584 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * 8336709: extensions: avoid duplicate JSON serialization in storage API Upstream folded SettingsStorageQuotaEnforcer into value_store::QuotaEnforcer, which CreateSettingsStore now returns directly. Mirror LocalValueStoreCache and call SetQuotaLimits on the returned store instead of wrapping it. Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8336709 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * chore: bump chromium in DEPS to 160.0.8187.0 * 8826893: Revert CHECK to DCHECK in DesktopWindowTreeHostWin::SetAspectRatio Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8826893 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * chore: update patches * 8850105: content: Use UI-thread file access check in file URL loader CreateFileURLLoaderBypassingSecurityChecks() now CHECKs that it runs on the UI thread. The asar loader resolves archive paths on a thread pool sequence and handed plain file:// requests to it from there, which hit the CHECK for every non-asar file load. Post that hand-off to the UI thread instead; the asar path keeps its threading. Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8850105 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NayLZmJJv2PCUyprP4YX1L * 8866586: Linux: Show extensions in described file chooser filter names The portal file chooser now names a described filter after its description and patterns, so the <input type=file> accept filter is 'Custom Files (*.png, *.txt)' instead of 'Custom Files'. Update the expected filter name and current_filter in the Linux portal spec. Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8866586 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NayLZmJJv2PCUyprP4YX1L * chore: bump chromium in DEPS to 160.0.8189.0 * 8872587: [Capture] Record macOS native picker request outcomes and wait times Upstream now logs a per-picker-type request-tracking histogram at the top of Open(), and its type-suffix helper NOTREACHED()s on TYPE_NONE. Map TYPE_NONE to the Window suffix, matching how the existing Log*ToUma helpers already report the combined picker. Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8872587 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * chore: update patches * chore: update patches * 8809914: Fix build with unbundled zstd, limit visibility of //third_party/zstd:headers Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8809914 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * chore: update patches * chore: update libc++ filenames * 8790374: [network] Stage NetToMojoPendingBuffer writes in a heap buffer Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8790374 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * chore: bump chromium in DEPS to 160.0.8191.0 * 8848011: FSA: remove */.mvn from sensitive path blocklist Upstream removed the */.mvn kBlockWrite suffix rule from kBlockPaths, which this patch moves into chrome_file_system_access_blocklist.cc. Drop the rule from the blocklist file as well so Electron's blocklist stays in sync with Chrome's. Ref: https://chromium-review.googlesource.com/c/chromium/src/+/8848011 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> * chore: update patches * chore: bump chromium in DEPS to 160.0.8193.0 * chore: update siso revision * chore: update patches * fixup! chore: update siso revision Rebase the in-tree siso patches onto 253ebfc3d6 so the build-siso jobs can apply them again. * 0002: upstream e8a5bc0 ("siso: read zstd-compressed Ninja files") made fileParser.readFile open Ninja files with os.Open itself and map them with the new mmapfile.Map, so it no longer goes through mmapfile.Read. Export the Windows retry as mmapfile.Open (a plain os.Open elsewhere) and use it in readFile, so Ninja file opens keep retrying transient ERROR_INVALID_PARAMETER. * 0003: upstream f3a845e ("siso: apply remote inputs inside precomputed subtrees") added siso/build/tree_input_test.go and a remoteInputs argument to treeInput. Append the regression test to that file and pass nil remote inputs. * 0006: refresh cas_test.go context after upstream 62c6788 added tests at the end of the file. 0004 and 0005 still apply unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NayLZmJJv2PCUyprP4YX1L * chore: update patches Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NayLZmJJv2PCUyprP4YX1L * chore: update patches Restore the src/env.h index line in inspector_only_dispatch_interrupt-safe_methods_from_v8_interrupts.patch to the node v26.13.1 value that this branch's DEPS needs. The previous commit (05b2143) changed it to the v26.14.0 value, which only matches main and broke the checkout jobs with "needs update". Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01NayLZmJJv2PCUyprP4YX1L * fixup! 8775587: [inspector] Remove AllowJavascriptExecutionScope from dispatch Rework the Node inspector patch to follow Blink's InspectorTaskRunner: keep a separate queue for requests that may run JavaScript, handle it only outside V8 interrupts, and let interrupt-safe methods (now including Debugger.enable/disable and the Profiler controls) overtake it so frontends can attach to and profile a busy thread. Outside of interrupts both queues are handled in posting order. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fixup! 8775587: [inspector] Remove AllowJavascriptExecutionScope from dispatch Document that inspector commands that can run JavaScript now wait for a busy main process, utility process or worker thread, while commands that do not run JavaScript can overtake them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * chore: update patches skip-lint: updating patches after rebase * 8803935: [fastapi] Eagerly deopt for kPointer and kSeqOneByteString in Turboshaft Turboshaft now deoptimizes, instead of calling the slow callback, when a kSeqOneByteString fast API parameter receives another kind of string. test-buffer-bytelength-safe-fast relied on the old behavior, so backport the upstream removal of the test (nodejs/node#67897). Ref: https://chromium-review.googlesource.com/c/v8/v8/+/8803935 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: electron-roller[bot] <84116207+electron-roller[bot]@users.noreply.github.com> Co-authored-by: electron-claude[bot] <279139701+electron-claude[bot]@users.noreply.github.com> Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com> Co-authored-by: John Kleinschmidt <jkleinsc@electronjs.org>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This test makes too many assumptions about how strings in V8 is represented and optimized, which can easily get broken by V8 updates.
Refs: v8#266
Refs: https://chromium-review.googlesource.com/c/v8/v8/+/8803935