add a exception catch

pull/5370/head
Liana Husikyan 5 years ago committed by Aniket
parent ae3d5a8c06
commit 182e6054c1
  1. 8
      remix-solidity/src/compiler/compiler-worker.js

@ -16,8 +16,12 @@ module.exports = function (self) {
compileJSON = null
self.importScripts(data.data)
try {
self.importScripts(data.data)
} catch (exception) {
return JSON.stringify({ error: 'Uncaught JavaScript exception:\n' + exception })
}
var compiler = solc(self.Module)
compileJSON = function (input) {

Loading…
Cancel
Save