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 --- runtime/js/40_process.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'runtime/js/40_process.js') diff --git a/runtime/js/40_process.js b/runtime/js/40_process.js index 51cae9e66..f837b2b4c 100644 --- a/runtime/js/40_process.js +++ b/runtime/js/40_process.js @@ -13,6 +13,7 @@ ArrayPrototypeSlice, TypeError, ObjectEntries, + SafeArrayIterator, String, } = window.__bootstrap.primordials; @@ -111,7 +112,10 @@ stdin = "inherit", }) { if (cmd[0] != null) { - cmd = [pathFromURL(cmd[0]), ...ArrayPrototypeSlice(cmd, 1)]; + cmd = [ + pathFromURL(cmd[0]), + ...new SafeArrayIterator(ArrayPrototypeSlice(cmd, 1)), + ]; } const res = opRun({ cmd: ArrayPrototypeMap(cmd, String), -- cgit v1.2.3