| Index: Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
|
| diff --git a/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp b/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
|
| index ce85958b6117668f272894090421a464a8fa82f5..ec7de0f80a9d21077924420b5c45f4ee712f6ffa 100644
|
| --- a/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
|
| +++ b/Source/bindings/tests/results/modules/V8TestInterfacePartial.cpp
|
| @@ -233,9 +233,12 @@ static void partialVoidTestEnumModulesArgMethodMethod(const v8::FunctionCallback
|
| arg = info[0];
|
| if (!arg.prepare())
|
| return;
|
| - String string = arg;
|
| - if (!(string == "EnumModulesValue1" || string == "EnumModulesValue2")) {
|
| - V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("partialVoidTestEnumModulesArgMethod", "TestInterface", "parameter 1 ('" + string + "') is not a valid enum value."));
|
| + const char* validValues[] = {
|
| + "EnumModulesValue1",
|
| + "EnumModulesValue2",
|
| + };
|
| + if (!isValidEnum(arg, validValues, 2)) {
|
| + V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("partialVoidTestEnumModulesArgMethod", "TestInterface", "parameter 1 is not a valid enum value."));
|
| return;
|
| }
|
| }
|
|
|