Skip to content

Commit 6cfad53

Browse files
committed
microDom helper.argsToElements() - clone args so not modifying passed args
1 parent 881304c commit 6cfad53

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/Debug/js/zest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,7 @@ var zest = (function () {
215215
*/
216216
const argsToElements = function (args, el, index) {
217217
const elements = [];
218+
args = Array.from(args); // shallow copy so not affecting original
218219
while (args.length) {
219220
const arg = args.shift();
220221
if (typeof arg === 'string') {

0 commit comments

Comments
 (0)