Skip to content

Commit a36c862

Browse files
committed
Doc
1 parent 03d19dc commit a36c862

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

easycoder/plugins/browser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ const EasyCoder_Browser = {
11111111
eventTarget.targetRecord.index = eventTarget.targetIndex;
11121112
setTimeout(function () {
11131113
EasyCoder.timestamp = Date.now();
1114-
let p = EasyCoder.scripts[eventTarget.targetRecord.program]
1114+
let p = EasyCoder.scripts[eventTarget.targetRecord.program];
11151115
p.run(eventTarget.targetPc);
11161116
}, 1);
11171117
}

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);

easycoder/plugins/rest.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ const EasyCoder_Rest = {
140140
if (command.onError) {
141141
program.errorMessage = `Exception trapped: ${error}`;
142142
program.run(command.onError);
143+
program.run(command.pc + 1);
143144
} else {
144145
program.runtimeError(command.lino, `Error: ${error}`);
145146
}

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/codex.ecs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@
8888
variable FileIsOpen
8989
variable Item
9090
variable Items
91-
debug step
9291

9392
load showdown
9493
rest get ECPayload from `/resources/fragment/ec.txt`
@@ -113,7 +112,7 @@
113112
load plugin `gmap`
114113
load plugin `svg`
115114

116-
codemirror init basic profile `https://`cat the hostname cat `/easycoder/plugins/codemirror-ecs.js`
115+
codemirror init basic profile `https://` cat the hostname cat `/easycoder/plugins/codemirror-ecs.js`
117116
require css `https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.46.0/addon/dialog/dialog.css`
118117
require js `https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.46.0/addon/dialog/dialog.js`
119118
require js `https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.46.0/addon/search/search.js`

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)