Skip to content

Commit f2d6ff3

Browse files
authored
remove duplicate v8:: in example
documentation fix
1 parent 381f402 commit f2d6ff3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)