nan icon indicating copy to clipboard operation
nan copied to clipboard

chore: use new constructor for ScriptOrigin when >= 17.x

Open codebytere opened this issue 2 years ago • 3 comments

Refs https://chromium-review.googlesource.com/c/v8/v8/+/3395880.

Chromium did an advance deprecation removal of the ScriptOrigin ctor without an Isolate.

This allows Electron to remove a patch

codebytere avatar Nov 01 '23 20:11 codebytere

Why was the check originally for Node 18? I am AFK for about a week and cannot look into it until later.

On November 1, 2023 9:26:18 PM GMT+01:00, Shelley Vohr @.***> wrote:

Refs https://chromium-review.googlesource.com/c/v8/v8/+/3395880.

Chromium did an advance deprecation removal of the ScriptOrigin ctor without an Isolate.

This allows Electron to remove a patch You can view, comment on, or merge this pull request online at:

https://github.com/nodejs/nan/pull/960

-- Commit Summary --

  • chore: use new constructor for ScriptOrigin when >= 17.x

-- File Changes --

M test/cpp/news.cpp (4)

-- Patch Links --

https://github.com/nodejs/nan/pull/960.patch https://github.com/nodejs/nan/pull/960.diff

kkoopa avatar Nov 01 '23 21:11 kkoopa

@kkoopa that's when the new constructor was initially slated to be removed, but they moved up the date after all uses in Chromium got removed it seems.

codebytere avatar Nov 02 '23 00:11 codebytere

@kkoopa I'd still love a look at this when you can!

codebytere avatar Jan 01 '24 14:01 codebytere