Commit a481632b authored by Liana Husikyan's avatar Liana Husikyan Committed by Aniket

add a exception catch

parent e656e6c7
......@@ -16,7 +16,11 @@ module.exports = function (self) {
compileJSON = null
try {
self.importScripts(data.data)
} catch (exception) {
return JSON.stringify({ error: 'Uncaught JavaScript exception:\n' + exception })
}
var compiler = solc(self.Module)
......
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