Skip to content

Commit 9a7554a

Browse files
codebytereMylesBorins
authored andcommitted
src: fix CreatePlatform header param mismatch
Backport-PR-URL: #23700 PR-URL: #23947 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Ali Ijaz Sheikh <ofrobots@google.com> Reviewed-By: Matheus Marchini <mat@mmarchini.me>
1 parent de2340d commit 9a7554a

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

src/node.h

+8-6
Original file line numberDiff line numberDiff line change
@@ -100,15 +100,16 @@
100100
// Forward-declare libuv loop
101101
struct uv_loop_s;
102102

103-
// Forward-declare TracingController, used by CreatePlatform.
104-
namespace v8 {
105-
class TracingController;
106-
}
107-
108103
// Forward-declare these functions now to stop MSVS from becoming
109104
// terminally confused when it's done in node_internals.h
110105
namespace node {
111106

107+
namespace tracing {
108+
109+
class TracingController;
110+
111+
}
112+
112113
NODE_EXTERN v8::Local<v8::Value> ErrnoException(v8::Isolate* isolate,
113114
int errorno,
114115
const char* syscall = nullptr,
@@ -298,7 +299,8 @@ NODE_EXTERN MultiIsolatePlatform* GetMainThreadMultiIsolatePlatform();
298299

299300
NODE_EXTERN MultiIsolatePlatform* CreatePlatform(
300301
int thread_pool_size,
301-
v8::TracingController* tracing_controller);
302+
node::tracing::TracingController* tracing_controller);
303+
MultiIsolatePlatform* InitializeV8Platform(int thread_pool_size);
302304
NODE_EXTERN void FreePlatform(MultiIsolatePlatform* platform);
303305

304306
NODE_EXTERN void EmitBeforeExit(Environment* env);

0 commit comments

Comments
 (0)