Skip to content

Commit 673d168

Browse files
committed
Bug fix attempt
1 parent 4e05566 commit 673d168

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

dist/easycoder.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2969,10 +2969,9 @@ const EasyCoder_Core = {
29692969
} catch (err) {
29702970
program.runtimeError(program[program.pc].lino, `Can't parse '${propertyContent}': ${err.message}`);
29712971
}
2972-
try {
2973-
content = content[property];
2974-
} catch (err) {
2975-
program.runtimeError(program[program.pc].lino, `Property '${property}' does not exist`);
2972+
content = content[property];
2973+
if (content == undefined) {
2974+
content = ``;
29762975
}
29772976
}
29782977
}

js/easycoder/Core.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2969,10 +2969,9 @@ const EasyCoder_Core = {
29692969
} catch (err) {
29702970
program.runtimeError(program[program.pc].lino, `Can't parse '${propertyContent}': ${err.message}`);
29712971
}
2972-
try {
2973-
content = content[property];
2974-
} catch (err) {
2975-
program.runtimeError(program[program.pc].lino, `Property '${property}' does not exist`);
2972+
content = content[property];
2973+
if (content == undefined) {
2974+
content = ``;
29762975
}
29772976
}
29782977
}

0 commit comments

Comments
 (0)