diff options
author | Darshan Sen <darshan.sen@postman.com> | 2021-08-07 11:34:03 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2021-08-12 23:53:37 +0300 |
commit | 284f164962c8298ca4c24215a40b5c09d7ec572a (patch) | |
tree | f27434c4ffbbfeb257237341b9f42028a78be715 /src/node_internals.h | |
parent | c3b4d3f0436239614d51ecfe365a60a9a2ea9095 (diff) |
src: return Maybe<bool> from InitializeContextRuntime()
Signed-off-by: Darshan Sen <darshan.sen@postman.com>
PR-URL: https://github.com/nodejs/node/pull/39695
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_internals.h')
-rw-r--r-- | src/node_internals.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/node_internals.h b/src/node_internals.h index 06b2bdefb74..c996723db57 100644 --- a/src/node_internals.h +++ b/src/node_internals.h @@ -92,8 +92,7 @@ void SignalExit(int signal, siginfo_t* info, void* ucontext); std::string GetProcessTitle(const char* default_title); std::string GetHumanReadableProcessName(); -// TODO(RaisinTen): return a v8::Maybe<bool>. -void InitializeContextRuntime(v8::Local<v8::Context> context); +v8::Maybe<bool> InitializeContextRuntime(v8::Local<v8::Context> context); v8::Maybe<bool> InitializePrimordials(v8::Local<v8::Context> context); class NodeArrayBufferAllocator : public ArrayBufferAllocator { |