1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Ensure config._flow is non-enumerable so is ignored by JSON.stringify

Fixes  https://github.com/pdmangel/node-red-contrib-openhab2/issues/36
This commit is contained in:
Nick O'Leary 2019-03-18 15:11:56 +00:00
parent a242475b38
commit 962a29110c
No known key found for this signature in database
GPG Key ID: 4F2157149161A6C9

View File

@ -479,7 +479,7 @@ module.exports = {
} }
} }
try { try {
conf._flow = flow; Object.defineProperty(conf,'_flow', {value: flow, enumerable: false, writable: true })
newNode = new nodeTypeConstructor(conf); newNode = new nodeTypeConstructor(conf);
} catch (err) { } catch (err) {
Log.log({ Log.log({