mirror of
https://github.com/nodejs/node.git
synced 2025-05-16 18:57:28 +00:00

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>
20 lines
464 B
JavaScript
20 lines
464 B
JavaScript
// Flags: --expose-internals
|
|
'use strict';
|
|
/* eslint-disable no-global-assign */
|
|
|
|
require('../common');
|
|
|
|
const {
|
|
structuredClone: _structuredClone
|
|
} = require('internal/structured_clone');
|
|
const {
|
|
strictEqual
|
|
} = require('assert');
|
|
|
|
strictEqual(globalThis.structuredClone, _structuredClone);
|
|
structuredClone = undefined;
|
|
strictEqual(globalThis.structuredClone, undefined);
|
|
|
|
// Restore the value for the known globals check.
|
|
structuredClone = _structuredClone;
|