From 8956dcd248021a0dd69956995d87b0fd77e21472 Mon Sep 17 00:00:00 2001 From: Kevin Eady <8634912+KevinEady@users.noreply.github.com> Date: Thu, 16 Oct 2025 15:24:05 +0200 Subject: [PATCH] chore(no-release): fix nested ifdef handling --- scripts/update-headers.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/scripts/update-headers.js b/scripts/update-headers.js index 2683314..888d6ec 100644 --- a/scripts/update-headers.js +++ b/scripts/update-headers.js @@ -71,6 +71,12 @@ function removeExperimentals(stream, destination, verbose = false) { const identifier = matches[2]; macroStack.push(identifier); + if (mode.length && mode[mode.length - 1] === 'ignore') { + debug(`Line ${lineNumber} Continued-Ignored ${identifier}`); + mode.push('ignore'); + return; + } + debug(`Line ${lineNumber} Pushed ${identifier}`); if (identifier === 'NAPI_EXPERIMENTAL') {