diff options
author | Timothy J Fontaine <tjfontaine@gmail.com> | 2013-10-22 15:14:25 -0700 |
---|---|---|
committer | Timothy J Fontaine <tjfontaine@gmail.com> | 2013-10-23 09:17:31 -0700 |
commit | a53c763c16eeabb0901a05dbcf38a72fa96d2f26 (patch) | |
tree | 309bf250e1521cedf0e945d7a7629db511e64498 /deps/v8/tools/profviz/profviz.js | |
parent | 54910044b33a6405c72ad085915a55c575c027fc (diff) | |
download | node-new-a53c763c16eeabb0901a05dbcf38a72fa96d2f26.tar.gz |
v8: upgrade 3.21.18.3
Diffstat (limited to 'deps/v8/tools/profviz/profviz.js')
-rw-r--r-- | deps/v8/tools/profviz/profviz.js | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/deps/v8/tools/profviz/profviz.js b/deps/v8/tools/profviz/profviz.js index 7af12adc7e..8ac0881eb6 100644 --- a/deps/v8/tools/profviz/profviz.js +++ b/deps/v8/tools/profviz/profviz.js @@ -42,15 +42,6 @@ var worker_scripts = [ function plotWorker() { var worker = null; - var delegateList = { - "log" : log, - "error" : logError, - "displayplot" : displayplot, - "displayprof" : displayprof, - "range" : setRange, - "script" : scriptLoaded - } - function initialize() { ui.freeze(); worker = new Worker("worker.js"); @@ -89,6 +80,16 @@ function plotWorker() { if (worker) worker.terminate(); initialize(); } + + var delegateList = { + "log" : log, + "error" : logError, + "displayplot" : displayplot, + "displayprof" : displayprof, + "range" : setRange, + "script" : scriptLoaded, + "reset" : this.reset + } } @@ -233,9 +234,6 @@ function start(event) { function getSelectedFile() { var file = ui.file.files[0]; if (!file) throw Error("No valid file selected."); - if (!file.type.toString().match(/text/)) { - throw Error("'" + escape(file.name) + "' is not a text file."); - } return file; } |