Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
baas-ide
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
guxukai
baas-ide
Commits
db0a8172
Commit
db0a8172
authored
Jan 03, 2020
by
aniket-engg
Committed by
Aniket
Jan 03, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
arrow functions
parent
5a0f6714
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
compiler-worker.ts
remix-solidity/src/compiler/compiler-worker.ts
+4
-2
No files found.
remix-solidity/src/compiler/compiler-worker.ts
View file @
db0a8172
...
@@ -5,8 +5,10 @@ import { CompilerInput, MessageToWorker } from './types'
...
@@ -5,8 +5,10 @@ import { CompilerInput, MessageToWorker } from './types'
var
compileJSON
:
((
input
:
CompilerInput
)
=>
string
)
|
null
=
(
input
)
=>
{
return
''
}
var
compileJSON
:
((
input
:
CompilerInput
)
=>
string
)
|
null
=
(
input
)
=>
{
return
''
}
var
missingInputs
:
string
[]
=
[]
var
missingInputs
:
string
[]
=
[]
// 'DedicatedWorkerGlobalScope' object (the Worker global scope) is accessible through the self keyword
// 'dom' and 'webworker' library files can not be included together
export
default
(
self
)
=>
{
export
default
(
self
)
=>
{
self
.
addEventListener
(
'message'
,
function
(
e
)
{
self
.
addEventListener
(
'message'
,
(
e
)
=>
{
const
data
:
MessageToWorker
=
e
.
data
const
data
:
MessageToWorker
=
e
.
data
switch
(
data
.
cmd
)
{
switch
(
data
.
cmd
)
{
case
'loadVersion'
:
case
'loadVersion'
:
...
@@ -19,7 +21,7 @@ export default (self) => {
...
@@ -19,7 +21,7 @@ export default (self) => {
let
compiler
:
solc
=
solc
(
self
.
Module
)
let
compiler
:
solc
=
solc
(
self
.
Module
)
compileJSON
=
(
input
)
=>
{
compileJSON
=
(
input
)
=>
{
try
{
try
{
let
missingInputsCallback
=
function
(
path
)
{
let
missingInputsCallback
=
(
path
)
=>
{
missingInputs
.
push
(
path
)
missingInputs
.
push
(
path
)
return
{
'error'
:
'Deferred import'
}
return
{
'error'
:
'Deferred import'
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment