| Index: Source/bindings/tests/results/core/V8TestObject.cpp
|
| diff --git a/Source/bindings/tests/results/core/V8TestObject.cpp b/Source/bindings/tests/results/core/V8TestObject.cpp
|
| index 925385b4426dfd1e05e520d243fdaea22ab9a0c0..cdee4d0f1dd63d1d9e15b111351a142c45ee5904 100644
|
| --- a/Source/bindings/tests/results/core/V8TestObject.cpp
|
| +++ b/Source/bindings/tests/results/core/V8TestObject.cpp
|
| @@ -1643,8 +1643,10 @@ static void testEnumAttributeAttributeSetter(v8::Local<v8::Value> v8Value, const
|
| TestObject* impl = V8TestObject::toImpl(holder);
|
| TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
|
| String string = cppValue;
|
| - if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || string == "EnumValue3"))
|
| + if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || string == "EnumValue3")) {
|
| + currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, "The provided value '" + string + "' is not a valid value of type 'TestEnum'."));
|
| return;
|
| + }
|
| impl->setTestEnumAttribute(cppValue);
|
| }
|
|
|
| @@ -5045,8 +5047,10 @@ static void enumForPrivateScriptAttributeSetter(v8::Local<v8::Value> v8Value, co
|
| TestObject* impl = V8TestObject::toImpl(holder);
|
| TOSTRING_VOID(V8StringResource<>, cppValue, v8Value);
|
| String string = cppValue;
|
| - if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || string == "EnumValue3"))
|
| + if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" || string == "EnumValue3")) {
|
| + currentExecutionContext(info.GetIsolate())->addConsoleMessage(ConsoleMessage::create(JSMessageSource, ErrorMessageLevel, "The provided value '" + string + "' is not a valid value of type 'TestEnum'."));
|
| return;
|
| + }
|
| V8TestObject::PrivateScript::enumForPrivateScriptAttributeSetter(toFrameIfNotDetached(info.GetIsolate()->GetCurrentContext()), impl, cppValue);
|
| }
|
|
|
|
|