diff --git a/red/runtime/nodes/registry/registry.js b/red/runtime/nodes/registry/registry.js index 32fcf72fa..fadf1f51b 100644 --- a/red/runtime/nodes/registry/registry.js +++ b/red/runtime/nodes/registry/registry.js @@ -317,7 +317,7 @@ function getModuleInfo(module) { function getCaller(){ var orig = Error.prepareStackTrace; Error.prepareStackTrace = function(_, stack){ return stack; }; - var err = new Error; + var err = new Error(); Error.captureStackTrace(err, arguments.callee); var stack = err.stack; Error.prepareStackTrace = orig;