Skip to content

Commit 775f063

Browse files
committed
Return null if no property
1 parent 662423b commit 775f063

File tree

4 files changed

+23
-13
lines changed

4 files changed

+23
-13
lines changed

dist/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# EasyCoder server files
22

3-
Here are 2 small REST servers written in Python and PHP, which both perform similar functions. The former is for setting up a `localhost` server and the latter is for use on LAMP servers.
3+
Here are 2 small REST servers written in Python and PHP, which both perform the same functions. The former is for setting up a `localhost` server and the latter is for use on LAMP servers.
44

55
These REST servers give your browser scripts read and write access to files on your own website and to remote servers if CORS has been set up.
66

dist/easycoder-min.js

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

dist/easycoder.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2956,7 +2956,12 @@ const EasyCoder_Core = {
29562956
JSON.stringify(elementContent) : elementContent
29572957
};
29582958
case `property`:
2959-
const property = program.getValue(value.property);
2959+
let property = ``
2960+
try {
2961+
property = program.getValue(value.property);
2962+
}
2963+
catch (err) {
2964+
}
29602965
const propertyRecord = program.getSymbolRecord(value.symbol);
29612966
let propertyContent = program.getValue(propertyRecord.value[propertyRecord.index]);
29622967
var content = ``;

js/easycoder/Core.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2956,7 +2956,12 @@ const EasyCoder_Core = {
29562956
JSON.stringify(elementContent) : elementContent
29572957
};
29582958
case `property`:
2959-
const property = program.getValue(value.property);
2959+
let property = ``
2960+
try {
2961+
property = program.getValue(value.property);
2962+
}
2963+
catch (err) {
2964+
}
29602965
const propertyRecord = program.getSymbolRecord(value.symbol);
29612966
let propertyContent = program.getValue(propertyRecord.value[propertyRecord.index]);
29622967
var content = ``;

0 commit comments

Comments
 (0)