|
|
@ -101,7 +101,7 @@ function Compiler (handleImportCall) { |
|
|
|
var result |
|
|
|
var result |
|
|
|
try { |
|
|
|
try { |
|
|
|
var input = compilerInput(source.sources, {optimize: optimize, evmVersion: evmVersion, language: language, target: source.target}) |
|
|
|
var input = compilerInput(source.sources, {optimize: optimize, evmVersion: evmVersion, language: language, target: source.target}) |
|
|
|
result = compiler.compile(input, missingInputsCallback) |
|
|
|
result = compiler.compile(input, { import: missingInputsCallback }) |
|
|
|
result = JSON.parse(result) |
|
|
|
result = JSON.parse(result) |
|
|
|
} catch (exception) { |
|
|
|
} catch (exception) { |
|
|
|
result = { error: { formattedMessage: 'Uncaught JavaScript exception:\n' + exception, severity: 'error', mode: 'panic' } } |
|
|
|
result = { error: { formattedMessage: 'Uncaught JavaScript exception:\n' + exception, severity: 'error', mode: 'panic' } } |
|
|
|