doc: fix doc example for cctest
cctest guide example wasn't working because of a few typos. PR-URL: https://github.com/nodejs/node/pull/17355 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Timothy Gu <timothygu99@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Alexey Orlenko <eaglexrlnk@gmail.com>
This commit is contained in:
parent
b1e6c0d44c
commit
c9d1704216
@ -312,8 +312,8 @@ TEST_F(EnvTest, RunAtExit) {
|
||||
v8::Local<v8::Context> context = v8::Context::New(isolate_);
|
||||
node::IsolateData* isolateData = node::CreateIsolateData(isolate_, uv_default_loop());
|
||||
Argv argv{"node", "-e", ";"};
|
||||
auto env = Environment:CreateEnvironment(isolateData, context, 1, *argv, 2, *argv);
|
||||
node::AtExit(at_exit_callback);
|
||||
auto env = node::CreateEnvironment(isolateData, context, 1, *argv, 2, *argv);
|
||||
node::AtExit(env, at_exit_callback);
|
||||
node::RunAtExit(env);
|
||||
EXPECT_TRUE(called_cb);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user