Repository navigation
chore: bump nan to 2.28.0 - #53636
Merged
Merged
Conversation
nan 2.28.0 carries its own versions of most of what we patched (WriteUtf8V2, EmbedderDataTypeTag, ExternalPointerTypeTag, the AccessControl and ReturnValue<void> changes), so nine of eleven patches go. Two remain for V8 15.x: setter callbacks taking PropertyCallbackInfo<Boolean>, and Holder() / SetPrototype() replacing the V2 variants that 15.3 removed. The yarn lockfile the runner needs moves from a patch into script/nan/ and nannew-test.js is re-enabled; buffer-test.js still allocates outside the V8 sandbox.
Regenerate the .yarnrc.yml / yarn.lock patch for 2.28.0 instead of shipping the lockfile under script/.
Member
|
Should we auto-roll nan? |
|
No Release Notes |
3 tasks done
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.
Description of Change
Bumps
nanfrom 2.23.0 to 2.28.0. Upstream has since landed its own versions of most of what we were patching (WriteUtf8V2,EmbedderDataTypeTag,ExternalPointerTypeTag, theAccessControlenum removal,ReturnValue<void>::Set), and two more of our patches had become no-ops, so the code patches go from ten to two, both for V8 15.x:8236212_api_remove_deprecated_methods_pt_2.patch(kept, rebased): accessor and interceptor setters takePropertyCallbackInfo<v8::Boolean>.fix_support_v8_15_3_and_later.patch(new): V8 15.3 removedPropertyCallbackInfo::HolderV2()andObject::SetPrototypeV2()(https://chromium-review.googlesource.com/c/v8/v8/+/8234700) afterHolder()/SetPrototype()took over their semantics; nan 2.28 still calls the V2 names for V8 >= 14, so use the plain ones again from 15.3.Both are candidates for a single upstream nodejs/nan "support V8 >= 15.3" PR.
The
.yarnrc.yml/yarn.lockpatch the spec runner needs (nan ships no lockfile, and immutable installs on CI require one) is regenerated for 2.28.0, sopatches/nanis three files in total.nannew-test.jspasses again and comes off the runner's disabled list;buffer-test.jsstays off because it allocates an ArrayBuffer backing store outside the V8 sandbox.Verified on Linux with
script/nan-spec-runner.jsagainst a testing build: all 46 addons compile and the suite is 569/569.Checklist
npm testpassesRelease Notes
Notes: none