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
7698da2e
Commit
7698da2e
authored
Aug 31, 2016
by
Alex Beregszaszi
Committed by
GitHub
Aug 31, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #189 from ethereum/worker-catch-exceptions
Catch solc exception in the worker the same way as the non-worker version
parents
5aeb1365
bd71078e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
compiler-worker.js
src/app/compiler-worker.js
+4
-0
No files found.
src/app/compiler-worker.js
View file @
7698da2e
...
...
@@ -16,10 +16,14 @@ module.exports = function (self) {
var
compiler
=
solc
(
self
.
Module
);
compileJSON
=
function
(
input
,
optimize
)
{
try
{
return
JSON
.
stringify
(
compiler
.
compile
(
JSON
.
parse
(
input
),
optimize
,
function
(
path
)
{
missingInputs
.
push
(
path
);
return
{
'error'
:
'Deferred import'
};
}));
}
catch
(
exception
)
{
return
JSON
.
stringify
({
error
:
'Uncaught JavaScript exception:
\
n'
+
exception
});
}
};
self
.
postMessage
({
...
...
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