Skip to content

Commit 50822d8

Browse files
committed
Evaluate argument
1 parent 975832c commit 50822d8

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

dist/easycoder-min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/easycoder.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3096,10 +3096,10 @@ const EasyCoder_Core = {
30963096
comparison = program.compare(program, condition.value1, condition.value2);
30973097
return condition.negate ? comparison >= 0 : comparison < 0;
30983098
case `array`:
3099-
test = Array.isArray(condition.value1);
3099+
test = Array.isArray(program.getValue(condition.value1));
31003100
return condition.negate ? !test : test;
31013101
case `object`:
3102-
test = typeof condition.value1 === `object`;
3102+
test = typeof program.getValue(condition.value1) === `object`;
31033103
return condition.negate ? !test : test;
31043104
case `not`:
31053105
return !program.getValue(condition.value);

js/easycoder/Core.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3096,10 +3096,10 @@ const EasyCoder_Core = {
30963096
comparison = program.compare(program, condition.value1, condition.value2);
30973097
return condition.negate ? comparison >= 0 : comparison < 0;
30983098
case `array`:
3099-
test = Array.isArray(condition.value1);
3099+
test = Array.isArray(program.getValue(condition.value1));
31003100
return condition.negate ? !test : test;
31013101
case `object`:
3102-
test = typeof condition.value1 === `object`;
3102+
test = typeof program.getValue(condition.value1) === `object`;
31033103
return condition.negate ? !test : test;
31043104
case `not`:
31053105
return !program.getValue(condition.value);

0 commit comments

Comments
 (0)