Commit f820dbe1 authored by aniket-engg's avatar aniket-engg Committed by Aniket

twice error catching improved

parent a481632b
...@@ -16,11 +16,7 @@ module.exports = function (self) { ...@@ -16,11 +16,7 @@ module.exports = function (self) {
compileJSON = null compileJSON = null
try { self.importScripts(data.data)
self.importScripts(data.data)
} catch (exception) {
return JSON.stringify({ error: 'Uncaught JavaScript exception:\n' + exception })
}
var compiler = solc(self.Module) var compiler = solc(self.Module)
......
...@@ -298,9 +298,6 @@ function Compiler (handleImportCall) { ...@@ -298,9 +298,6 @@ function Compiler (handleImportCall) {
break break
} }
}) })
worker.onerror = function (msg) {
compilationFinished({ error: 'Worker error: ' + msg.data })
}
worker.addEventListener('error', function (msg) { worker.addEventListener('error', function (msg) {
compilationFinished({ error: 'Worker error: ' + msg.data }) compilationFinished({ error: 'Worker error: ' + msg.data })
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment