mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
74dff83fad
Since eslint fixed https://github.com/eslint/eslint/issues/16412 and we are on eslint v8.57.0 so that we can take advantage of no-restricted-properties rule for webcrypto. PR-URL: https://github.com/nodejs/node/pull/53023 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
14 lines
385 B
JavaScript
14 lines
385 B
JavaScript
// Flags: --expose-internals
|
|
'use strict';
|
|
|
|
const common = require('../common');
|
|
if (!common.hasCrypto)
|
|
common.skip('missing crypto');
|
|
|
|
const assert = require('assert');
|
|
|
|
const webcrypto = require('internal/crypto/webcrypto');
|
|
assert.strictEqual(Crypto, webcrypto.Crypto);
|
|
assert.strictEqual(CryptoKey, webcrypto.CryptoKey);
|
|
assert.strictEqual(SubtleCrypto, webcrypto.SubtleCrypto);
|