Skip to content

Commit fc4ac54

Browse files
committed
Minor
1 parent 03d19dc commit fc4ac54

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

easycoder/plugins/json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ const EasyCoder_Json = {
467467
return {
468468
type: `constant`,
469469
numeric: true,
470-
content: array.length
470+
content: array ? array.length : 0
471471
};
472472
case `keys`:
473473
symbolRecord = program.getSymbolRecord(value.name);

js/plugins/json.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ const EasyCoder_Json = {
467467
return {
468468
type: `constant`,
469469
numeric: true,
470-
content: array.length
470+
content: array ? array.length : 0
471471
};
472472
case `keys`:
473473
symbolRecord = program.getSymbolRecord(value.name);

resources/ecs/showdown.ecs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
rest get ECPayload from `/resources/fragment/ec.txt`
1414
rest get Codex from `/resources/fragment/codex.txt`
1515

16+
load showdown
1617
on DecoratorCallback go to Decorate
1718
on message
1819
begin

0 commit comments

Comments
 (0)