| Index: Source/WebCore/bindings/dart/custom/DartWebGLRenderingContextCustom.cpp
|
| diff --git a/Source/WebCore/bindings/dart/custom/DartWebGLRenderingContextCustom.cpp b/Source/WebCore/bindings/dart/custom/DartWebGLRenderingContextCustom.cpp
|
| index 476b8c6d78444caf535d3d7a3be88c0e285e8a5a..f66093584feb920493bb7b35c736528e20d0b2cf 100644
|
| --- a/Source/WebCore/bindings/dart/custom/DartWebGLRenderingContextCustom.cpp
|
| +++ b/Source/WebCore/bindings/dart/custom/DartWebGLRenderingContextCustom.cpp
|
| @@ -264,11 +264,9 @@ void getExtensionCallback(Dart_NativeArguments args)
|
| Dart_Handle exception = 0;
|
| {
|
| WebGLRenderingContext* context = DartDOMWrapper::receiver<WebGLRenderingContext>(args);
|
| - const ParameterAdapter<String> name(Dart_GetNativeArgument(args, 1));
|
| - if (!name.conversionSuccessful()) {
|
| - exception = name.exception();
|
| + DartStringAdapter name = DartUtilities::dartToString(Dart_GetNativeArgument(args, 1), exception);
|
| + if (exception)
|
| goto fail;
|
| - }
|
|
|
| WebGLExtension* extension = context->getExtension(name);
|
| Dart_Handle result = webGLExtensionToDart(extension);
|
|
|