Index: Source/bindings/templates/methods.cpp |
diff --git a/Source/bindings/templates/methods.cpp b/Source/bindings/templates/methods.cpp |
index 57144452fa2a733646c489a492648a47a12281d2..c56051b877d8e72e6fc67e40ebdc7a87a7e5b881 100644 |
--- a/Source/bindings/templates/methods.cpp |
+++ b/Source/bindings/templates/methods.cpp |
@@ -691,7 +691,7 @@ ASSERT(context); |
if method.overloads else |
method.runtime_enabled_function) %} |
v8::Local<v8::FunctionTemplate> functionTemplate = v8::FunctionTemplate::New(isolate, {{cpp_class_or_partial}}V8Internal::{{method.name}}MethodCallback, v8Undefined(), defaultSignature, {{method.number_of_required_arguments}}); |
-v8::Local<v8::Function> function = ->GetFunction(isolate->GetCurrentContext())).ToLocalChecked(); |
bashi
2015/08/21 06:55:11
My bad :(
|
+v8::Local<v8::Function> function = v8CallOrCrash(functionTemplate->GetFunction(isolate->GetCurrentContext())); |
v8CallOrCrash(prototypeObject->Set(isolate->GetCurrentContext(), v8AtomicString(isolate, "{{method.name}}"), function)); |
{% endfilter %}{# runtime_enabled() #} |
{% endfilter %}{# exposed() #} |