Skip to content
Permalink
Browse files

SandBox, feat: not remove entry function when refreshing error.

  • Loading branch information...
xicilion committed Oct 22, 2018
1 parent 920d882 commit 7a9ca2bcb3bff61bb30c8d5426d93e68bb0c6ba6
Showing with 1 addition and 3 deletions.
  1. +1 −3 fibjs/src/sandbox/SandBox_require.cpp
@@ -61,10 +61,8 @@ v8::Local<v8::Value> SandBox::get_module(v8::Local<v8::Object> mods, exlib::stri

v8::Local<v8::Object> glob = isolate->context()->Global();
v = func->Call(glob, 6, args);
if (v.IsEmpty()) {
remove(id);
if (v.IsEmpty())
return v;
}

return mod->Get(strExports);
}

0 comments on commit 7a9ca2b

Please sign in to comment.
You can’t perform that action at this time.