| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent a6f58c0 commit e70b052
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -45,7 +45,9 @@ void EmitBeforeExit(Environment* env) { | |||
| 45 | 45 | Local<Integer> exit_code; | |
| 46 | 46 | if (!exit_code_v->ToInteger(env->context()).ToLocal(&exit_code)) return; | |
| 47 | 47 | ||
| 48 | - ProcessEmit(env, "beforeExit", exit_code).ToLocalChecked(); | ||
| 48 | + // TODO(addaleax): Provide variants of EmitExit() and EmitBeforeExit() that | ||
| 49 | + // actually forward empty MaybeLocal<>s (and check env->can_call_into_js()). | ||
| 50 | + USE(ProcessEmit(env, "beforeExit", exit_code)); | ||
| 49 | 51 | } | |
| 50 | 52 | ||
| 51 | 53 | int EmitExit(Environment* env) { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments