| 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..33a1f4f62ff190f81088cc9cb97635d1bc733e84 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."));
|
| + static const char* validValues[] = {
|
| + "EnumModulesValue1",
|
| + "EnumModulesValue2",
|
| + };
|
| + if (!isValidEnum(arg, validValues, WTF_ARRAY_LENGTH(validValues))) {
|
| + V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("partialVoidTestEnumModulesArgMethod", "TestInterface", "parameter 1 ('" + toCoreString(info.GetIsolate(), info[0]) + "') is not a valid enum value."));
|
| return;
|
| }
|
| }
|
|
|