mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Add test cases for setMessageProperty with non-object properties
This commit is contained in:
@@ -216,7 +216,7 @@ module.exports = function(RED) {
|
||||
RED.util.setMessageProperty(msg,property,undefined);
|
||||
} else if (rule.t === 'set') {
|
||||
if (!RED.util.setMessageProperty(msg,property,value)) {
|
||||
node.warn(RED._("change.errors.no-override",{prop:property}));
|
||||
node.warn(RED._("change.errors.no-override",{property:property}));
|
||||
}
|
||||
} else if (rule.t === 'change') {
|
||||
current = RED.util.getMessageProperty(msg,property);
|
||||
|
@@ -672,7 +672,7 @@
|
||||
"invalid-from": "Invalid 'from' property: __error__",
|
||||
"invalid-json": "Invalid 'to' JSON property",
|
||||
"invalid-expr": "Invalid JSONata expression: __error__",
|
||||
"no-override": "Can't overwrite primitive type with object __prop__."
|
||||
"no-override": "Cannot set property of non-object type: __property__"
|
||||
}
|
||||
},
|
||||
"range": {
|
||||
|
Reference in New Issue
Block a user