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

Fix lint error in registry.js

This commit is contained in:
Nick O'Leary 2015-11-24 22:43:17 +00:00
parent f03aff7006
commit 3a03d46d8d

View File

@ -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;