From 4bb9e535fb45cf3edce6a6a1b487d01b1f8176bb Mon Sep 17 00:00:00 2001 From: Matheus Marchini Date: Mon, 27 Nov 2017 17:27:23 -0200 Subject: [PATCH] doc: fix doc example for cctest cctest guide example wasn't working because of a few typos. --- doc/guides/writing-tests.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/guides/writing-tests.md b/doc/guides/writing-tests.md index 7dc86facfd00c5..3ea221901195dc 100644 --- a/doc/guides/writing-tests.md +++ b/doc/guides/writing-tests.md @@ -312,8 +312,8 @@ TEST_F(EnvTest, RunAtExit) { v8::Local 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); }