From 99460dbc3f18285de879256e1f1d328c0ad4b856 Mon Sep 17 00:00:00 2001 From: Richard Lau Date: Fri, 24 Sep 2021 10:20:34 -0400 Subject: [PATCH] fix(update-v8): add abseil-cpp as a V8 dependency Add new V8 dependency introduced in V8 9.6. --- lib/update-v8/constants.js | 6 ++++++ lib/update-v8/majorUpdate.js | 3 +++ 2 files changed, 9 insertions(+) diff --git a/lib/update-v8/constants.js b/lib/update-v8/constants.js index be9bc071..69c5bab7 100644 --- a/lib/update-v8/constants.js +++ b/lib/update-v8/constants.js @@ -41,6 +41,12 @@ exports.v8Deps = [ }, since: 55 }, + { + name: 'abseil-cpp', + repo: 'third_party/abseil-cpp', + gitignore: '!third_party/abseil-cpp', + since: 96 + }, { name: 'gtest', repo: 'testing/gtest', diff --git a/lib/update-v8/majorUpdate.js b/lib/update-v8/majorUpdate.js index d5f9171d..2ae055e0 100644 --- a/lib/update-v8/majorUpdate.js +++ b/lib/update-v8/majorUpdate.js @@ -147,6 +147,9 @@ async function readDeps(nodeDir, depName) { let deps; eval(depsDeclaration); // eslint-disable-line no-eval const dep = deps[depName]; + if (typeof dep === 'object') { + return dep.url.split('@'); + } return dep.split('@'); }