Skip to content
This repository has been archived by the owner on Jun 3, 2018. It is now read-only.

Commit

Permalink
code update
Browse files Browse the repository at this point in the history
  • Loading branch information
schomery committed Jun 14, 2017
1 parent 5e7ec7d commit 640906e
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions host.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,16 +47,7 @@ function observe (request, push, done) {
};
const script = new vm.Script(request.script);
const context = new vm.createContext(sandbox);
try {
script.runInContext(context);
}
catch (e) {
push({
type: 'sandbox',
error: e.message
});
close();
}
script.runInContext(context);
}
else {
push({
Expand Down

0 comments on commit 640906e

Please sign in to comment.