Welcome to mirror list, hosted at ThFree Co, Russian Federation.

test-structuredClone-global.js « parallel « test - github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: ae6120c04e000512dc3ee155a2a1f7e861999056 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// 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;