Browse Source

debugger: fix 'scripts' command

path.split() no longer available
v0.7.4-release
Ryan Dahl 14 years ago
parent
commit
5580907c58
  1. 3
      lib/_debugger.js

3
lib/_debugger.js

@ -740,8 +740,7 @@ Interface.prototype.printScripts = function(displayNatives) {
script.name == client.currentScript ||
!script.isNative) {
text += script.name == client.currentScript ? '* ' : ' ';
var n = require('path').split(script.name);
text += n[n.length - 1] + '\n';
text += script.name + '\n';
}
}
}

Loading…
Cancel
Save