| Index: Source/bindings/templates/attributes.cpp
|
| diff --git a/Source/bindings/templates/attributes.cpp b/Source/bindings/templates/attributes.cpp
|
| index c71948dc66f78e4ad3949945b156b9d0b6b15a60..7e5276deda9edea9cc296509572de7e6b3f73d5d 100644
|
| --- a/Source/bindings/templates/attributes.cpp
|
| +++ b/Source/bindings/templates/attributes.cpp
|
| @@ -29,6 +29,12 @@ static void {{attribute.name}}AttributeGetter(v8::Local<v8::String> name, const
|
| return;
|
| }
|
| {% endif %}
|
| + {% if attribute.is_getter_raises_exception %}
|
| + ExceptionState es(info.GetIsolate());
|
| + {{attribute.cpp_type}} {{attribute.cpp_value}} = {{attribute.cpp_value_original}};
|
| + if (UNLIKELY(es.throwIfNeeded()))
|
| + return;
|
| + {% endif %}
|
| {% if attribute.is_nullable %}
|
| bool isNull = false;
|
| {{attribute.cpp_type}} {{attribute.cpp_value}} = {{attribute.cpp_value_original}};
|
|
|