| Index: Source/bindings/v8/V8Binding.h
|
| diff --git a/Source/bindings/v8/V8Binding.h b/Source/bindings/v8/V8Binding.h
|
| index 9ed124a8430573db9d024008b4a200db6e586ffd..d5ced8a3326624403c350ff71d42a004c9ddb690 100644
|
| --- a/Source/bindings/v8/V8Binding.h
|
| +++ b/Source/bindings/v8/V8Binding.h
|
| @@ -399,8 +399,11 @@ namespace WebCore {
|
| };
|
|
|
| template <class T, class V8T>
|
| - Vector<RefPtr<T> > toRefPtrNativeArray(v8::Handle<v8::Value> value, v8::Isolate* isolate)
|
| + Vector<RefPtr<T> > toRefPtrNativeArray(v8::Handle<v8::Value> value, v8::Isolate* isolate, bool* success = 0)
|
| {
|
| + if (success)
|
| + *success = true;
|
| +
|
| if (!value->IsArray())
|
| return Vector<RefPtr<T> >();
|
|
|
| @@ -415,6 +418,8 @@ namespace WebCore {
|
| v8::Handle<v8::Object> object = v8::Handle<v8::Object>::Cast(element);
|
| result.append(V8T::toNative(object));
|
| } else {
|
| + if (success)
|
| + *success = false;
|
| throwTypeError("Invalid Array element type", isolate);
|
| return Vector<RefPtr<T> >();
|
| }
|
|
|