From 948f85216a15e4ef489af21bb532a9b201b0364c Mon Sep 17 00:00:00 2001 From: Kenta Moriuchi Date: Tue, 20 Dec 2022 11:37:50 +0900 Subject: chore: Update dlint (#17031) Introduces `SafeSetIterator` and `SafeMapIterator` to primordials --- ext/crypto/00_crypto.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ext/crypto') diff --git a/ext/crypto/00_crypto.js b/ext/crypto/00_crypto.js index fac407d88..f56bfb6c0 100644 --- a/ext/crypto/00_crypto.js +++ b/ext/crypto/00_crypto.js @@ -34,6 +34,7 @@ StringPrototypeToUpperCase, StringPrototypeCharCodeAt, StringFromCharCode, + SafeArrayIterator, Symbol, SymbolFor, SyntaxError, @@ -4052,7 +4053,7 @@ } const pkcs8Der = ops.op_export_pkcs8_ed25519( - new Uint8Array([0x04, 0x22, ...innerKey]), + new Uint8Array([0x04, 0x22, ...new SafeArrayIterator(innerKey)]), ); pkcs8Der[15] = 0x20; return pkcs8Der.buffer; @@ -4115,7 +4116,7 @@ } const pkcs8Der = ops.op_export_pkcs8_x25519( - new Uint8Array([0x04, 0x22, ...innerKey]), + new Uint8Array([0x04, 0x22, ...new SafeArrayIterator(innerKey)]), ); pkcs8Der[15] = 0x20; return pkcs8Der.buffer; -- cgit v1.2.3