diff options
author | Ethan Arrowood <ethan@arrowood.dev> | 2021-08-13 20:31:04 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2021-08-28 18:55:01 +0300 |
commit | d0a898681f8d5a5fcd53fa2ab8e0a3da807791be (patch) | |
tree | 9f5023c6c597e1a7904f12b57df507c1323828a0 /test/common/index.js | |
parent | 21cf618c22d666a31f2182b7171571aafe58fa7a (diff) |
lib: add structuredClone() global
PR-URL: https://github.com/nodejs/node/pull/39759
Fixes: https://github.com/nodejs/node/issues/39713
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Michaƫl Zasso <targos@protonmail.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Diffstat (limited to 'test/common/index.js')
-rw-r--r-- | test/common/index.js | 7 |
1 files changed, 7 insertions, 0 deletions
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); } |