Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(742)

Side by Side Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestIntegerIndexed.cpp

Issue 2301993002: binding: Introduces ExceptionToPromiseScope. (Closed)
Patch Set: Addressed review comments (rename, empty line). Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY! 5 // This file has been auto-generated by code_generator_v8.py. DO NOT MODIFY!
6 6
7 #include "V8TestIntegerIndexed.h" 7 #include "V8TestIntegerIndexed.h"
8 8
9 #include "bindings/core/v8/ExceptionState.h" 9 #include "bindings/core/v8/ExceptionState.h"
10 #include "bindings/core/v8/GeneratedCodeHelper.h" 10 #include "bindings/core/v8/GeneratedCodeHelper.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 } 73 }
74 74
75 void lengthAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo) 75 void lengthAttributeSetterCallback(const v8::FunctionCallbackInfo<v8::Value>& in fo)
76 { 76 {
77 v8::Local<v8::Value> v8Value = info[0]; 77 v8::Local<v8::Value> v8Value = info[0];
78 TestIntegerIndexedV8Internal::lengthAttributeSetter(v8Value, info); 78 TestIntegerIndexedV8Internal::lengthAttributeSetter(v8Value, info);
79 } 79 }
80 80
81 static void voidMethodDocumentMethod(const v8::FunctionCallbackInfo<v8::Value>& info) 81 static void voidMethodDocumentMethod(const v8::FunctionCallbackInfo<v8::Value>& info)
82 { 82 {
83 TestIntegerIndexed* impl = V8TestIntegerIndexed::toImpl(info.Holder());
84
83 if (UNLIKELY(info.Length() < 1)) { 85 if (UNLIKELY(info.Length() < 1)) {
84 V8ThrowException::throwException(info.GetIsolate(), V8ThrowException::cr eateTypeError(info.GetIsolate(), ExceptionMessages::failedToExecute("voidMethodD ocument", "TestIntegerIndexed", ExceptionMessages::notEnoughArguments(1, info.Le ngth())))); 86 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodDocument", "TestIntegerIndexed", ExceptionMessages::no tEnoughArguments(1, info.Length())));
85 return; 87 return;
86 } 88 }
87 TestIntegerIndexed* impl = V8TestIntegerIndexed::toImpl(info.Holder()); 89
88 Document* document; 90 Document* document;
89 { 91 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]);
90 document = V8Document::toImplWithTypeCheck(info.GetIsolate(), info[0]); 92 if (!document) {
91 if (!document) { 93 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessages::f ailedToExecute("voidMethodDocument", "TestIntegerIndexed", "parameter 1 is not o f type 'Document'."));
92 V8ThrowException::throwTypeError(info.GetIsolate(), ExceptionMessage s::failedToExecute("voidMethodDocument", "TestIntegerIndexed", "parameter 1 is n ot of type 'Document'.")); 94
93 return; 95 return;
94 }
95 } 96 }
97
96 impl->voidMethodDocument(document); 98 impl->voidMethodDocument(document);
97 } 99 }
98 100
99 static void voidMethodDocumentMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info) 101 static void voidMethodDocumentMethodCallback(const v8::FunctionCallbackInfo<v8:: Value>& info)
100 { 102 {
101 TestIntegerIndexedV8Internal::voidMethodDocumentMethod(info); 103 TestIntegerIndexedV8Internal::voidMethodDocumentMethod(info);
102 } 104 }
103 105
104 void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::PropertyCal lbackInfo<v8::Value>& info) 106 void namedPropertyGetterCallback(v8::Local<v8::Name> name, const v8::PropertyCal lbackInfo<v8::Value>& info)
105 { 107 {
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 { 208 {
207 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value); 209 return V8PerIsolateData::from(isolate)->findInstanceInPrototypeChain(&wrappe rTypeInfo, v8Value);
208 } 210 }
209 211
210 TestIntegerIndexed* V8TestIntegerIndexed::toImplWithTypeCheck(v8::Isolate* isola te, v8::Local<v8::Value> value) 212 TestIntegerIndexed* V8TestIntegerIndexed::toImplWithTypeCheck(v8::Isolate* isola te, v8::Local<v8::Value> value)
211 { 213 {
212 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : nullptr; 214 return hasInstance(value, isolate) ? toImpl(v8::Local<v8::Object>::Cast(valu e)) : nullptr;
213 } 215 }
214 216
215 } // namespace blink 217 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698