|
|
@ -72,12 +72,7 @@ function Compiler (handleImportCall) { |
|
|
|
|
|
|
|
|
|
|
|
function onInternalCompilerLoaded () { |
|
|
|
function onInternalCompilerLoaded () { |
|
|
|
if (worker === null) { |
|
|
|
if (worker === null) { |
|
|
|
var compiler |
|
|
|
var compiler = solc(window.Module) |
|
|
|
if (typeof (window) === 'undefined') { |
|
|
|
|
|
|
|
compiler = require('solc') |
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
|
|
compiler = solc(window.Module) |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
compileJSON = function (source, optimize, cb) { |
|
|
|
compileJSON = function (source, optimize, cb) { |
|
|
|
var missingInputs = [] |
|
|
|
var missingInputs = [] |
|
|
|