diff --git a/local-cli/server/util/debuggerWorker.js b/local-cli/server/util/debuggerWorker.js index 3c3f3136a..94f3b7d58 100644 --- a/local-cli/server/util/debuggerWorker.js +++ b/local-cli/server/util/debuggerWorker.js @@ -21,7 +21,7 @@ var messageHandlers = { 'executeJSCall': function(message, sendReply) { var returnValue = [[], [], [], [], []]; try { - if (require) { + if (typeof require === 'function') { returnValue = require(message.moduleName)[message.moduleMethod].apply(null, message.arguments); } } finally {