Skip to content

Commit 1a41047

Browse files
authored
remove duplicate v8:: in example (#799)
documentation fix
1 parent 381f402 commit 1a41047

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/docs/embed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ global_templ->SetAccessor(v8::String::NewFromUtf8(isolate, "x"),
235235
global_templ->SetAccessor(v8::String::NewFromUtf8(isolate, "y"),
236236
YGetter, YSetter);
237237
v8::Persistent<v8::Context> context =
238-
v8::Context::v8::New(isolate, nullptr, global_templ);
238+
v8::Context::New(isolate, nullptr, global_templ);
239239
```
240240
241241
Note that the object template in the code above is created at the same time as the context. The template could have been created in advance and then used for any number of contexts.

0 commit comments

Comments
 (0)