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
b6356b68
Commit
b6356b68
authored
Sep 01, 2016
by
chriseth
Committed by
GitHub
Sep 01, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #209 from ethereum/worker-error-reporting
Do not hide worker errors in the console
parents
ebd130c0
adfb53e8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
compiler.js
src/app/compiler.js
+6
-2
No files found.
src/app/compiler.js
View file @
b6356b68
...
...
@@ -180,8 +180,12 @@ function Compiler (editor, queryParams, handleGithubCall, updateFiles) {
break
;
}
});
worker
.
onerror
=
function
(
msg
)
{
console
.
log
(
msg
.
data
);
};
worker
.
addEventListener
(
'error'
,
function
(
msg
)
{
console
.
log
(
msg
.
data
);
});
worker
.
onerror
=
function
(
msg
)
{
compilationFinished
({
error
:
'Worker error: '
+
msg
.
data
});
};
worker
.
addEventListener
(
'error'
,
function
(
msg
)
{
compilationFinished
({
error
:
'Worker error: '
+
msg
.
data
});
});
compileJSON
=
function
(
source
,
optimize
)
{
worker
.
postMessage
({
cmd
:
'compile'
,
source
:
JSON
.
stringify
(
source
),
optimize
:
optimize
});
};
...
...
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