node/test/fixtures/wpt/WebCryptoAPI/util/worker-report-crypto-subtle-presence.js
Michaël Zasso 0220497f90
test: pull Web Platform Tests for WebCryptoAPI
PR-URL: https://github.com/nodejs/node/pull/39648
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
2021-08-05 16:52:48 +02:00

3 lines
181 B
JavaScript

subtle_crypto_found = true;
if (typeof crypto.subtle === 'undefined') subtle_crypto_found = false;
postMessage({ msg_type: 'subtle_crypto_found', msg_value: subtle_crypto_found });