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) {
compileJSON = null
try {
self.importScripts(data.data)
} catch (exception) {
return JSON.stringify({ error: 'Uncaught JavaScript exception:\n' + exception })
}
self.importScripts(data.data)
var compiler = solc(self.Module)
......
......@@ -298,9 +298,6 @@ function Compiler (handleImportCall) {
break
}
})
worker.onerror = function (msg) {
compilationFinished({ error: 'Worker error: ' + msg.data })
}
worker.addEventListener('error', function (msg) {
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