Index: Source/bindings/templates/attributes.cpp |
diff --git a/Source/bindings/templates/attributes.cpp b/Source/bindings/templates/attributes.cpp |
index f9f715ce50ab2b973430ab362ea315a4d51e08fb..13b2d61d6b23c69c627538d4344bf3efefa1474a 100644 |
--- a/Source/bindings/templates/attributes.cpp |
+++ b/Source/bindings/templates/attributes.cpp |
@@ -15,7 +15,7 @@ const v8::PropertyCallbackInfo<v8::Value>& info |
{{cpp_class}}* imp = {{v8_class}}::toNative(holder); |
{% endif %} |
{% if attribute.cached_attribute_validation_method %} |
- v8::Handle<v8::String> propertyName = v8::String::NewFromUtf8(info.GetIsolate(), "{{attribute.name}}", v8::String::kInternalizedString); |
+ v8::Handle<v8::String> propertyName = v8AtomicString(info.GetIsolate(), "{{attribute.name}}"); |
{{cpp_class}}* imp = {{v8_class}}::toNative(info.Holder()); |
if (!imp->{{attribute.cached_attribute_validation_method}}()) { |
v8::Handle<v8::Value> jsValue = info.Holder()->GetHiddenValue(propertyName); |
@@ -166,7 +166,7 @@ v8::Local<v8::Value> jsValue, const v8::PropertyCallbackInfo<void>& info |
exceptionState.throwIfNeeded(); |
{% endif %} |
{% if attribute.cached_attribute_validation_method %} |
- info.Holder()->DeleteHiddenValue(v8::String::NewFromUtf8(info.GetIsolate(), "{{attribute.name}}", v8::String::kInternalizedString)); // Invalidate the cached value. |
+ info.Holder()->DeleteHiddenValue(v8AtomicString(info.GetIsolate(), "{{attribute.name}}")); // Invalidate the cached value. |
{% endif %} |
} |
{% endfilter %} |