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

Commit 640906e

Browse files
committed
code update
1 parent 5e7ec7d commit 640906e

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

host.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,16 +47,7 @@ function observe (request, push, done) {
4747
};
4848
const script = new vm.Script(request.script);
4949
const context = new vm.createContext(sandbox);
50-
try {
51-
script.runInContext(context);
52-
}
53-
catch (e) {
54-
push({
55-
type: 'sandbox',
56-
error: e.message
57-
});
58-
close();
59-
}
50+
script.runInContext(context);
6051
}
6152
else {
6253
push({

0 commit comments

Comments
 (0)