mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Prevent function module overwriting built-in sandbox properties
This commit is contained in:
@@ -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__"
|
||||
}
|
||||
|
Reference in New Issue
Block a user