[njs] Test262: fixed check for crypto object.
noreply at nginx.com
noreply at nginx.com
Thu Dec 19 20:19:04 UTC 2024
details: https://github.com/nginx/njs/commit/1442b5ea9c2bd3377bcd6de08ae49ffe75143134
branches: master
commit: 1442b5ea9c2bd3377bcd6de08ae49ffe75143134
user: Dmitry Volyntsev <xeioex at nginx.com>
date: Wed, 4 Dec 2024 17:52:32 -0800
description:
Test262: fixed check for crypto object.
---
test/harness/compatWebcrypto.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/test/harness/compatWebcrypto.js b/test/harness/compatWebcrypto.js
index aca3ada5..adc0fb41 100644
--- a/test/harness/compatWebcrypto.js
+++ b/test/harness/compatWebcrypto.js
@@ -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;
}
More information about the nginx-devel
mailing list