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.name == client.currentScript ||
!script.isNative) { !script.isNative) {
text += script.name == client.currentScript ? '* ' : ' '; text += script.name == client.currentScript ? '* ' : ' ';
var n = require('path').split(script.name); text += script.name + '\n';
text += n[n.length - 1] + '\n';
} }
} }
} }

Loading…
Cancel
Save