MCPcopy Index your code
hub / github.com/nodejs/node / assertNoOwnKeys

Function assertNoOwnKeys

test/parallel/test-crypto-keyobject-clone-transfer.js:22–26  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

20const { types: { isKeyObject } } = require('node:util');
21
22function assertNoOwnKeys(key) {
23 assert.deepStrictEqual(Object.getOwnPropertySymbols(key), []);
24 assert.deepStrictEqual(Object.getOwnPropertyNames(key), []);
25 assert.deepStrictEqual(Reflect.ownKeys(key), []);
26}
27
28function assertSameKeyObject(original, clone) {
29 assert.notStrictEqual(original, clone);

Callers 1

assertSameKeyObjectFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…