1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Fix default value handling on context array access

Fixes #2252
This commit is contained in:
Nick O'Leary 2019-08-06 15:55:25 +01:00
parent 6c3913785d
commit 9b938f6515
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -234,7 +234,7 @@ function createContext(id,seed,parent) {
if (err.code === "INVALID_EXPR") {
throw err;
}
value[0] = undefined;
values[0] = undefined;
}
}
} else {
@ -246,7 +246,7 @@ function createContext(id,seed,parent) {
if (err.code === "INVALID_EXPR") {
throw err;
}
value[i] = undefined;
values[i] = undefined;
}
}
}