| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 96882e1 commit dc766e6
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -420,11 +420,11 @@ static void Close(const FunctionCallbackInfo<Value>& args) { | |||
| 420 | 420 | ||
| 421 | 421 | ||
| 422 | 422 | Local<Value> BuildStatsObject(Environment* env, const uv_stat_t* s) { | |
| 423 | + EscapableHandleScope handle_scope(env->isolate()); | ||
| 424 | + | ||
| 423 | 425 | // If you hit this assertion, you forgot to enter the v8::Context first. | |
| 424 | 426 | CHECK_EQ(env->context(), env->isolate()->GetCurrentContext()); | |
| 425 | 427 | ||
| 426 | - EscapableHandleScope handle_scope(env->isolate()); | ||
| 427 | - | ||
| 428 | 428 | // The code below is very nasty-looking but it prevents a segmentation fault | |
| 429 | 429 | // when people run JS code like the snippet below. It's apparently more | |
| 430 | 430 | // common than you would expect, several people have reported this crash... | |
| Back | FazBrowse Home | New Git URL |
0 commit comments