Index: Source/bindings/templates/interface.cpp |
diff --git a/Source/bindings/templates/interface.cpp b/Source/bindings/templates/interface.cpp |
index aae63d9d5d96d4dee5b95e2530a8ecf65be6afbc..8ec03b3c8b7f10ea011f26ee0a9406de796cfb7b 100644 |
--- a/Source/bindings/templates/interface.cpp |
+++ b/Source/bindings/templates/interface.cpp |
@@ -646,11 +646,11 @@ static void constructor(const v8::FunctionCallbackInfo<v8::Value>& info) |
{% endfor %} |
} |
{% if is_constructor_raises_exception %} |
- RefPtr<{{cpp_class}}> event = {{cpp_class}}::create(type, eventInit, exceptionState); |
+ RefPtrWillBeRawPtr<{{cpp_class}}> event = {{cpp_class}}::create(type, eventInit, exceptionState); |
if (exceptionState.throwIfNeeded()) |
return; |
{% else %} |
- RefPtr<{{cpp_class}}> event = {{cpp_class}}::create(type, eventInit); |
+ RefPtrWillBeRawPtr<{{cpp_class}}> event = {{cpp_class}}::create(type, eventInit); |
{% endif %} |
{% if any_type_attributes and not interface_name == 'ErrorEvent' %} |
{# If we're in an isolated world, create a SerializedScriptValue and store |