summaryrefslogtreecommitdiffstats
path: root/chromium/v8/include/v8-fast-api-calls.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/v8/include/v8-fast-api-calls.h')
-rw-r--r--chromium/v8/include/v8-fast-api-calls.h8
1 files changed, 6 insertions, 2 deletions
diff --git a/chromium/v8/include/v8-fast-api-calls.h b/chromium/v8/include/v8-fast-api-calls.h
index f74406493bc..fb3e9bddb41 100644
--- a/chromium/v8/include/v8-fast-api-calls.h
+++ b/chromium/v8/include/v8-fast-api-calls.h
@@ -120,8 +120,7 @@
* v8::ObjectTemplate::New(isolate);
* object_template->SetInternalFieldCount(
* kV8EmbedderWrapperObjectIndex + 1);
- * object_template->Set(
- v8::String::NewFromUtf8Literal(isolate, "method"), method_template);
+ * object_template->Set(isolate, "method", method_template);
*
* // Instantiate the wrapper JS object.
* v8::Local<v8::Object> object =
@@ -379,6 +378,11 @@ class V8_EXPORT CFunction {
return ArgUnwrap<F*>::Make(func);
}
+ template <typename F>
+ static CFunction Make(F* func, const CFunctionInfo* type_info) {
+ return CFunction(reinterpret_cast<const void*>(func), type_info);
+ }
+
private:
const void* address_;
const CFunctionInfo* type_info_;