From d0a898681f8d5a5fcd53fa2ab8e0a3da807791be Mon Sep 17 00:00:00 2001 From: Ethan Arrowood Date: Fri, 13 Aug 2021 11:31:04 -0600 Subject: lib: add structuredClone() global MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/39759 Fixes: https://github.com/nodejs/node/issues/39713 Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Antoine du Hamel Reviewed-By: Michaƫl Zasso Reviewed-By: Filip Skokan --- test/common/index.js | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'test/common/index.js') diff --git a/test/common/index.js b/test/common/index.js index 2ac4538cbea..18d64444191 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -293,6 +293,13 @@ if (global.PerformanceMeasure) { knownGlobals.push(global.PerformanceMeasure); } +// TODO(@ethan-arrowood): Similar to previous checks, this can be temporary +// until v16.x is EOL. Once all supported versions have structuredClone we +// can add this to the list above instead. +if (global.structuredClone) { + knownGlobals.push(global.structuredClone); +} + function allowGlobals(...allowlist) { knownGlobals = knownGlobals.concat(allowlist); } -- cgit v1.2.3