]> git.kaiwu.me - njs.git/commitdiff
Test262: fixed check for crypto object.
authorDmitry Volyntsev <xeioex@nginx.com>
Thu, 5 Dec 2024 01:52:32 +0000 (17:52 -0800)
committerDmitry Volyntsev <xeioexception@gmail.com>
Wed, 18 Dec 2024 23:44:35 +0000 (15:44 -0800)
test/harness/compatWebcrypto.js

index aca3ada5cc38c6538aed8ff6e6a3361a6ddf3362..adc0fb41686f09ff29c6a8e499c5eafb31453fe0 100644 (file)
@@ -3,6 +3,6 @@ if (typeof crypto == 'undefined' && typeof require == 'function') {
 }
 
 function has_webcrypto() {
-    return (typeof crypto != 'undefied') ? crypto : null;
+    return (typeof crypto != 'undefined') ? crypto : null;
 }