Skip to content

Commit

Permalink
refactor: remove last use of InternalCallbackScope (#27050)
Browse files Browse the repository at this point in the history
* refactor: remove last use of InternalCallbackScope

* update patches

Co-authored-by: Electron Bot <electron@github.com>
  • Loading branch information
codebytere and electron-bot committed Dec 17, 2020
1 parent 50e3a2a commit e012f61
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 59 deletions.
2 changes: 0 additions & 2 deletions patches/node/.patches
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,13 @@ feat_add_uv_loop_watcher_queue_code.patch
feat_initialize_asar_support.patch
expose_get_builtin_module_function.patch
fix_build_and_expose_inspector_agent.patch
fix_expose_internalcallbackscope.patch
build_add_gn_build_files.patch
fix_add_default_values_for_enable_lto_and_build_v8_with_gn_in.patch
feat_add_new_built_with_electron_variable_to_config_gypi.patch
feat_add_flags_for_low-level_hooks_and_exceptions.patch
fix_expose_tracing_agent_and_use_tracing_tracingcontroller_instead.patch
pass_all_globals_through_require.patch
call_process_log_from_fallback_stream_on_windows.patch
fixme_remove_async_id_assertion_check.patch
fixme_comment_trace_event_macro.patch
fix_key_gen_apis_are_not_available_in_boringssl.patch
build_modify_js2c_py_to_allow_injection_of_original-fs_and_custom_embedder_js.patch
Expand Down
20 changes: 0 additions & 20 deletions patches/node/fix_expose_internalcallbackscope.patch

This file was deleted.

2 changes: 1 addition & 1 deletion patches/node/fixme_comment_trace_event_macro.patch
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ This broke the build at some point. Does it still? We should probably remove
this patch and find out!

diff --git a/src/node_internals.h b/src/node_internals.h
index 084ecfa73657d1958d7552baa896e170934639c8..cb388f3a9f12949fd3ecb0406f7b550f4ca5ca7c 100644
index c1555b312e2f22e191d91d34a348d2e163d85b5b..b92cc7edbfb60ec8182db5083f8b7aebd5c5da94 100644
--- a/src/node_internals.h
+++ b/src/node_internals.h
@@ -375,10 +375,11 @@ class TraceEventScope {
Expand Down
27 changes: 0 additions & 27 deletions patches/node/fixme_remove_async_id_assertion_check.patch

This file was deleted.

2 changes: 1 addition & 1 deletion patches/node/override_existing_v8_reallocate.patch
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ be overridden. This patch can be removed once the relevant version of V8
makes its way into Node.js.

diff --git a/src/node_internals.h b/src/node_internals.h
index cb388f3a9f12949fd3ecb0406f7b550f4ca5ca7c..f4b5c9bb7058da2355204a7285e5f7cc70c4ffda 100644
index b92cc7edbfb60ec8182db5083f8b7aebd5c5da94..294bed9175125bbd544c7aa7df4229d182ca442d 100644
--- a/src/node_internals.h
+++ b/src/node_internals.h
@@ -115,7 +115,7 @@ class NodeArrayBufferAllocator : public ArrayBufferAllocator {
Expand Down
10 changes: 2 additions & 8 deletions shell/app/node_main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -243,14 +243,8 @@ int NodeMain(int argc, char* argv[]) {
NodeDebugger node_debugger(env);
node_debugger.Start();

// TODO(codebytere): we should try to handle this upstream.
{
v8::HandleScope scope(isolate);
node::InternalCallbackScope callback_scope(
env, v8::Object::New(isolate), {1, 0},
node::InternalCallbackScope::kSkipAsyncHooks);
node::LoadEnvironment(env);
}
v8::HandleScope scope(isolate);
node::LoadEnvironment(env);

env->set_trace_sync_io(env->options()->trace_sync_io);

Expand Down

0 comments on commit e012f61

Please sign in to comment.