Prevent function module overwriting built-in sandbox properties

This commit is contained in:
Nick O'Leary
2021-02-16 13:58:59 +00:00
parent 9d34abf603
commit 785c349adc
6 changed files with 115 additions and 41 deletions

View File

@@ -209,9 +209,9 @@
"function": {
"function": "",
"label": {
"function": "Function",
"initialize": "Setup",
"finalize": "Close",
"function": "On Message",
"initialize": "On Start",
"finalize": "On Stop",
"outputs": "Outputs",
"require": "Require"
},
@@ -224,6 +224,10 @@
"module": "module"
},
"error": {
"moduleNotAllowed": "Module __module__ not allowed",
"moduleLoadError": "Failed to load module __module__: __error__",
"moduleNameError": "Invalid module variable name: __name__",
"moduleNameReserved": "Reserved variable name: __name__",
"inputListener":"Cannot add listener to 'input' event within Function",
"non-message-returned":"Function tried to send a message of type __type__"
}