Skip to content

Commit 27f9f17

Browse files
committed
Fix "pop"
1 parent 16f2c56 commit 27f9f17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/easycoder.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ const EasyCoder_Core = {
11521152
if (!target.isVHolder) {
11531153
program.variableDoesNotHoldAValueError(command.lino, target.name);
11541154
}
1155-
target.value = program.dataStack.pop();
1155+
target.value = program.getValue(program.dataStack.pop());
11561156
target.value[target.index] = {
11571157
type: target.value.type,
11581158
numeric: target.value.numeric,

js/easycoder/Core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,7 @@ const EasyCoder_Core = {
11521152
if (!target.isVHolder) {
11531153
program.variableDoesNotHoldAValueError(command.lino, target.name);
11541154
}
1155-
target.value = program.dataStack.pop();
1155+
target.value = program.getValue(program.dataStack.pop());
11561156
target.value[target.index] = {
11571157
type: target.value.type,
11581158
numeric: target.value.numeric,

0 commit comments

Comments
 (0)