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

Side by Side Diff: Source/bindings/tests/results/core/V8TestDictionary.cpp

Issue 938733003: IDL: Fix exception handling when converting V8 value to union/dictionary (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 10 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 "config.h" 7 #include "config.h"
8 #include "V8TestDictionary.h" 8 #include "V8TestDictionary.h"
9 9
10 #include "bindings/core/v8/ExceptionState.h" 10 #include "bindings/core/v8/ExceptionState.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 v8::Local<v8::Value> doubleOrNullMemberValue = v8Object->Get(v8String(isolat e, "doubleOrNullMember")); 73 v8::Local<v8::Value> doubleOrNullMemberValue = v8Object->Get(v8String(isolat e, "doubleOrNullMember"));
74 if (block.HasCaught()) { 74 if (block.HasCaught()) {
75 exceptionState.rethrowV8Exception(block.Exception()); 75 exceptionState.rethrowV8Exception(block.Exception());
76 return; 76 return;
77 } 77 }
78 if (doubleOrNullMemberValue.IsEmpty() || doubleOrNullMemberValue->IsUndefine d()) { 78 if (doubleOrNullMemberValue.IsEmpty() || doubleOrNullMemberValue->IsUndefine d()) {
79 // Do nothing. 79 // Do nothing.
80 } else if (doubleOrNullMemberValue->IsNull()) { 80 } else if (doubleOrNullMemberValue->IsNull()) {
81 impl.setDoubleOrNullMemberToNull(); 81 impl.setDoubleOrNullMemberToNull();
82 } else { 82 } else {
83 TONATIVE_VOID_EXCEPTIONSTATE(double, doubleOrNullMember, toDouble(double OrNullMemberValue, exceptionState), exceptionState); 83 TONATIVE_VOID_EXCEPTIONSTATE_NOTHROW(double, doubleOrNullMember, toDoubl e(doubleOrNullMemberValue, exceptionState), exceptionState);
84 impl.setDoubleOrNullMember(doubleOrNullMember); 84 impl.setDoubleOrNullMember(doubleOrNullMember);
85 } 85 }
86 86
87 v8::Local<v8::Value> doubleOrStringMemberValue = v8Object->Get(v8String(isol ate, "doubleOrStringMember")); 87 v8::Local<v8::Value> doubleOrStringMemberValue = v8Object->Get(v8String(isol ate, "doubleOrStringMember"));
88 if (block.HasCaught()) { 88 if (block.HasCaught()) {
89 exceptionState.rethrowV8Exception(block.Exception()); 89 exceptionState.rethrowV8Exception(block.Exception());
90 return; 90 return;
91 } 91 }
92 if (doubleOrStringMemberValue.IsEmpty() || doubleOrStringMemberValue->IsUnde fined()) { 92 if (doubleOrStringMemberValue.IsEmpty() || doubleOrStringMemberValue->IsUnde fined()) {
93 // Do nothing. 93 // Do nothing.
94 } else { 94 } else {
95 DoubleOrString doubleOrStringMember; 95 DoubleOrString doubleOrStringMember;
96 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(isolat e, doubleOrStringMemberValue, doubleOrStringMember, exceptionState), exceptionSt ate); 96 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL_NOTHROW(V8DoubleOrString::toImp l(isolate, doubleOrStringMemberValue, doubleOrStringMember, exceptionState), exc eptionState);
97 impl.setDoubleOrStringMember(doubleOrStringMember); 97 impl.setDoubleOrStringMember(doubleOrStringMember);
98 } 98 }
99 99
100 v8::Local<v8::Value> elementOrNullMemberValue = v8Object->Get(v8String(isola te, "elementOrNullMember")); 100 v8::Local<v8::Value> elementOrNullMemberValue = v8Object->Get(v8String(isola te, "elementOrNullMember"));
101 if (block.HasCaught()) { 101 if (block.HasCaught()) {
102 exceptionState.rethrowV8Exception(block.Exception()); 102 exceptionState.rethrowV8Exception(block.Exception());
103 return; 103 return;
104 } 104 }
105 if (elementOrNullMemberValue.IsEmpty() || elementOrNullMemberValue->IsUndefi ned()) { 105 if (elementOrNullMemberValue.IsEmpty() || elementOrNullMemberValue->IsUndefi ned()) {
106 // Do nothing. 106 // Do nothing.
107 } else if (elementOrNullMemberValue->IsNull()) { 107 } else if (elementOrNullMemberValue->IsNull()) {
108 impl.setElementOrNullMemberToNull(); 108 impl.setElementOrNullMemberToNull();
109 } else { 109 } else {
110 Element* elementOrNullMember = V8Element::toImplWithTypeCheck(isolate, e lementOrNullMemberValue); 110 Element* elementOrNullMember = V8Element::toImplWithTypeCheck(isolate, e lementOrNullMemberValue);
111 if (!elementOrNullMember && !elementOrNullMemberValue->IsNull()) { 111 if (!elementOrNullMember && !elementOrNullMemberValue->IsNull()) {
112 exceptionState.throwTypeError("member elementOrNullMember is not of type Element."); 112 exceptionState.throwTypeError("member elementOrNullMember is not of type Element.");
113 return; 113 return;
114 } 114 }
115 impl.setElementOrNullMember(elementOrNullMember); 115 impl.setElementOrNullMember(elementOrNullMember);
116 } 116 }
117 117
118 v8::Local<v8::Value> enumMemberValue = v8Object->Get(v8String(isolate, "enum Member")); 118 v8::Local<v8::Value> enumMemberValue = v8Object->Get(v8String(isolate, "enum Member"));
119 if (block.HasCaught()) { 119 if (block.HasCaught()) {
120 exceptionState.rethrowV8Exception(block.Exception()); 120 exceptionState.rethrowV8Exception(block.Exception());
121 return; 121 return;
122 } 122 }
123 if (enumMemberValue.IsEmpty() || enumMemberValue->IsUndefined()) { 123 if (enumMemberValue.IsEmpty() || enumMemberValue->IsUndefined()) {
124 // Do nothing. 124 // Do nothing.
125 } else { 125 } else {
126 TOSTRING_VOID(V8StringResource<>, enumMember, enumMemberValue); 126 TOSTRING_VOID_EXCEPTIONSTATE(V8StringResource<>, enumMember, enumMemberV alue, exceptionState);
127 String string = enumMember; 127 String string = enumMember;
128 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" | | string == "EnumValue3")) { 128 if (!(string == "" || string == "EnumValue1" || string == "EnumValue2" | | string == "EnumValue3")) {
129 exceptionState.throwTypeError("member enumMember ('" + string + "') is not a valid enum value."); 129 exceptionState.throwTypeError("member enumMember ('" + string + "') is not a valid enum value.");
130 return; 130 return;
131 } 131 }
132 impl.setEnumMember(enumMember); 132 impl.setEnumMember(enumMember);
133 } 133 }
134 134
135 v8::Local<v8::Value> eventTargetMemberValue = v8Object->Get(v8String(isolate , "eventTargetMember")); 135 v8::Local<v8::Value> eventTargetMemberValue = v8Object->Get(v8String(isolate , "eventTargetMember"));
136 if (block.HasCaught()) { 136 if (block.HasCaught()) {
(...skipping 12 matching lines...) Expand all
149 } 149 }
150 150
151 v8::Local<v8::Value> internalDictionarySequenceMemberValue = v8Object->Get(v 8String(isolate, "internalDictionarySequenceMember")); 151 v8::Local<v8::Value> internalDictionarySequenceMemberValue = v8Object->Get(v 8String(isolate, "internalDictionarySequenceMember"));
152 if (block.HasCaught()) { 152 if (block.HasCaught()) {
153 exceptionState.rethrowV8Exception(block.Exception()); 153 exceptionState.rethrowV8Exception(block.Exception());
154 return; 154 return;
155 } 155 }
156 if (internalDictionarySequenceMemberValue.IsEmpty() || internalDictionarySeq uenceMemberValue->IsUndefined()) { 156 if (internalDictionarySequenceMemberValue.IsEmpty() || internalDictionarySeq uenceMemberValue->IsUndefined()) {
157 // Do nothing. 157 // Do nothing.
158 } else { 158 } else {
159 TONATIVE_VOID_EXCEPTIONSTATE(Vector<InternalDictionary>, internalDiction arySequenceMember, toImplArray<InternalDictionary>(internalDictionarySequenceMem berValue, 0, isolate, exceptionState), exceptionState); 159 TONATIVE_VOID_EXCEPTIONSTATE_NOTHROW(Vector<InternalDictionary>, interna lDictionarySequenceMember, toImplArray<InternalDictionary>(internalDictionarySeq uenceMemberValue, 0, isolate, exceptionState), exceptionState);
160 impl.setInternalDictionarySequenceMember(internalDictionarySequenceMembe r); 160 impl.setInternalDictionarySequenceMember(internalDictionarySequenceMembe r);
161 } 161 }
162 162
163 v8::Local<v8::Value> longMemberValue = v8Object->Get(v8String(isolate, "long Member")); 163 v8::Local<v8::Value> longMemberValue = v8Object->Get(v8String(isolate, "long Member"));
164 if (block.HasCaught()) { 164 if (block.HasCaught()) {
165 exceptionState.rethrowV8Exception(block.Exception()); 165 exceptionState.rethrowV8Exception(block.Exception());
166 return; 166 return;
167 } 167 }
168 if (longMemberValue.IsEmpty() || longMemberValue->IsUndefined()) { 168 if (longMemberValue.IsEmpty() || longMemberValue->IsUndefined()) {
169 // Do nothing. 169 // Do nothing.
170 } else { 170 } else {
171 TONATIVE_VOID_EXCEPTIONSTATE(int, longMember, toInt32(longMemberValue, e xceptionState), exceptionState); 171 TONATIVE_VOID_EXCEPTIONSTATE_NOTHROW(int, longMember, toInt32(longMember Value, exceptionState), exceptionState);
172 impl.setLongMember(longMember); 172 impl.setLongMember(longMember);
173 } 173 }
174 174
175 v8::Local<v8::Value> objectMemberValue = v8Object->Get(v8String(isolate, "ob jectMember")); 175 v8::Local<v8::Value> objectMemberValue = v8Object->Get(v8String(isolate, "ob jectMember"));
176 if (block.HasCaught()) { 176 if (block.HasCaught()) {
177 exceptionState.rethrowV8Exception(block.Exception()); 177 exceptionState.rethrowV8Exception(block.Exception());
178 return; 178 return;
179 } 179 }
180 if (objectMemberValue.IsEmpty() || objectMemberValue->IsUndefined()) { 180 if (objectMemberValue.IsEmpty() || objectMemberValue->IsUndefined()) {
181 // Do nothing. 181 // Do nothing.
(...skipping 26 matching lines...) Expand all
208 208
209 v8::Local<v8::Value> otherDoubleOrStringMemberValue = v8Object->Get(v8String (isolate, "otherDoubleOrStringMember")); 209 v8::Local<v8::Value> otherDoubleOrStringMemberValue = v8Object->Get(v8String (isolate, "otherDoubleOrStringMember"));
210 if (block.HasCaught()) { 210 if (block.HasCaught()) {
211 exceptionState.rethrowV8Exception(block.Exception()); 211 exceptionState.rethrowV8Exception(block.Exception());
212 return; 212 return;
213 } 213 }
214 if (otherDoubleOrStringMemberValue.IsEmpty() || otherDoubleOrStringMemberVal ue->IsUndefined()) { 214 if (otherDoubleOrStringMemberValue.IsEmpty() || otherDoubleOrStringMemberVal ue->IsUndefined()) {
215 // Do nothing. 215 // Do nothing.
216 } else { 216 } else {
217 DoubleOrString otherDoubleOrStringMember; 217 DoubleOrString otherDoubleOrStringMember;
218 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8DoubleOrString::toImpl(isolat e, otherDoubleOrStringMemberValue, otherDoubleOrStringMember, exceptionState), e xceptionState); 218 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL_NOTHROW(V8DoubleOrString::toImp l(isolate, otherDoubleOrStringMemberValue, otherDoubleOrStringMember, exceptionS tate), exceptionState);
219 impl.setOtherDoubleOrStringMember(otherDoubleOrStringMember); 219 impl.setOtherDoubleOrStringMember(otherDoubleOrStringMember);
220 } 220 }
221 221
222 v8::Local<v8::Value> restrictedDoubleMemberValue = v8Object->Get(v8String(is olate, "restrictedDoubleMember")); 222 v8::Local<v8::Value> restrictedDoubleMemberValue = v8Object->Get(v8String(is olate, "restrictedDoubleMember"));
223 if (block.HasCaught()) { 223 if (block.HasCaught()) {
224 exceptionState.rethrowV8Exception(block.Exception()); 224 exceptionState.rethrowV8Exception(block.Exception());
225 return; 225 return;
226 } 226 }
227 if (restrictedDoubleMemberValue.IsEmpty() || restrictedDoubleMemberValue->Is Undefined()) { 227 if (restrictedDoubleMemberValue.IsEmpty() || restrictedDoubleMemberValue->Is Undefined()) {
228 // Do nothing. 228 // Do nothing.
229 } else { 229 } else {
230 TONATIVE_VOID_EXCEPTIONSTATE(double, restrictedDoubleMember, toRestricte dDouble(restrictedDoubleMemberValue, exceptionState), exceptionState); 230 TONATIVE_VOID_EXCEPTIONSTATE_NOTHROW(double, restrictedDoubleMember, toR estrictedDouble(restrictedDoubleMemberValue, exceptionState), exceptionState);
231 impl.setRestrictedDoubleMember(restrictedDoubleMember); 231 impl.setRestrictedDoubleMember(restrictedDoubleMember);
232 } 232 }
233 233
234 v8::Local<v8::Value> stringArrayMemberValue = v8Object->Get(v8String(isolate , "stringArrayMember")); 234 v8::Local<v8::Value> stringArrayMemberValue = v8Object->Get(v8String(isolate , "stringArrayMember"));
235 if (block.HasCaught()) { 235 if (block.HasCaught()) {
236 exceptionState.rethrowV8Exception(block.Exception()); 236 exceptionState.rethrowV8Exception(block.Exception());
237 return; 237 return;
238 } 238 }
239 if (stringArrayMemberValue.IsEmpty() || stringArrayMemberValue->IsUndefined( )) { 239 if (stringArrayMemberValue.IsEmpty() || stringArrayMemberValue->IsUndefined( )) {
240 // Do nothing. 240 // Do nothing.
241 } else { 241 } else {
242 TONATIVE_VOID_EXCEPTIONSTATE(Vector<String>, stringArrayMember, toImplAr ray<String>(stringArrayMemberValue, 0, isolate, exceptionState), exceptionState) ; 242 TONATIVE_VOID_EXCEPTIONSTATE_NOTHROW(Vector<String>, stringArrayMember, toImplArray<String>(stringArrayMemberValue, 0, isolate, exceptionState), excepti onState);
243 impl.setStringArrayMember(stringArrayMember); 243 impl.setStringArrayMember(stringArrayMember);
244 } 244 }
245 245
246 v8::Local<v8::Value> stringMemberValue = v8Object->Get(v8String(isolate, "st ringMember")); 246 v8::Local<v8::Value> stringMemberValue = v8Object->Get(v8String(isolate, "st ringMember"));
247 if (block.HasCaught()) { 247 if (block.HasCaught()) {
248 exceptionState.rethrowV8Exception(block.Exception()); 248 exceptionState.rethrowV8Exception(block.Exception());
249 return; 249 return;
250 } 250 }
251 if (stringMemberValue.IsEmpty() || stringMemberValue->IsUndefined()) { 251 if (stringMemberValue.IsEmpty() || stringMemberValue->IsUndefined()) {
252 // Do nothing. 252 // Do nothing.
253 } else { 253 } else {
254 TOSTRING_VOID(V8StringResource<>, stringMember, stringMemberValue); 254 TOSTRING_VOID_EXCEPTIONSTATE(V8StringResource<>, stringMember, stringMem berValue, exceptionState);
255 impl.setStringMember(stringMember); 255 impl.setStringMember(stringMember);
256 } 256 }
257 257
258 v8::Local<v8::Value> stringOrNullMemberValue = v8Object->Get(v8String(isolat e, "stringOrNullMember")); 258 v8::Local<v8::Value> stringOrNullMemberValue = v8Object->Get(v8String(isolat e, "stringOrNullMember"));
259 if (block.HasCaught()) { 259 if (block.HasCaught()) {
260 exceptionState.rethrowV8Exception(block.Exception()); 260 exceptionState.rethrowV8Exception(block.Exception());
261 return; 261 return;
262 } 262 }
263 if (stringOrNullMemberValue.IsEmpty() || stringOrNullMemberValue->IsUndefine d()) { 263 if (stringOrNullMemberValue.IsEmpty() || stringOrNullMemberValue->IsUndefine d()) {
264 // Do nothing. 264 // Do nothing.
265 } else if (stringOrNullMemberValue->IsNull()) { 265 } else if (stringOrNullMemberValue->IsNull()) {
266 impl.setStringOrNullMemberToNull(); 266 impl.setStringOrNullMemberToNull();
267 } else { 267 } else {
268 TOSTRING_VOID(V8StringResource<>, stringOrNullMember, stringOrNullMember Value); 268 TOSTRING_VOID_EXCEPTIONSTATE(V8StringResource<>, stringOrNullMember, str ingOrNullMemberValue, exceptionState);
269 impl.setStringOrNullMember(stringOrNullMember); 269 impl.setStringOrNullMember(stringOrNullMember);
270 } 270 }
271 271
272 v8::Local<v8::Value> stringSequenceMemberValue = v8Object->Get(v8String(isol ate, "stringSequenceMember")); 272 v8::Local<v8::Value> stringSequenceMemberValue = v8Object->Get(v8String(isol ate, "stringSequenceMember"));
273 if (block.HasCaught()) { 273 if (block.HasCaught()) {
274 exceptionState.rethrowV8Exception(block.Exception()); 274 exceptionState.rethrowV8Exception(block.Exception());
275 return; 275 return;
276 } 276 }
277 if (stringSequenceMemberValue.IsEmpty() || stringSequenceMemberValue->IsUnde fined()) { 277 if (stringSequenceMemberValue.IsEmpty() || stringSequenceMemberValue->IsUnde fined()) {
278 // Do nothing. 278 // Do nothing.
279 } else { 279 } else {
280 TONATIVE_VOID_EXCEPTIONSTATE(Vector<String>, stringSequenceMember, toImp lArray<String>(stringSequenceMemberValue, 0, isolate, exceptionState), exception State); 280 TONATIVE_VOID_EXCEPTIONSTATE_NOTHROW(Vector<String>, stringSequenceMembe r, toImplArray<String>(stringSequenceMemberValue, 0, isolate, exceptionState), e xceptionState);
281 impl.setStringSequenceMember(stringSequenceMember); 281 impl.setStringSequenceMember(stringSequenceMember);
282 } 282 }
283 283
284 v8::Local<v8::Value> testInterface2OrUint8ArrayMemberValue = v8Object->Get(v 8String(isolate, "testInterface2OrUint8ArrayMember")); 284 v8::Local<v8::Value> testInterface2OrUint8ArrayMemberValue = v8Object->Get(v 8String(isolate, "testInterface2OrUint8ArrayMember"));
285 if (block.HasCaught()) { 285 if (block.HasCaught()) {
286 exceptionState.rethrowV8Exception(block.Exception()); 286 exceptionState.rethrowV8Exception(block.Exception());
287 return; 287 return;
288 } 288 }
289 if (testInterface2OrUint8ArrayMemberValue.IsEmpty() || testInterface2OrUint8 ArrayMemberValue->IsUndefined()) { 289 if (testInterface2OrUint8ArrayMemberValue.IsEmpty() || testInterface2OrUint8 ArrayMemberValue->IsUndefined()) {
290 // Do nothing. 290 // Do nothing.
291 } else { 291 } else {
292 TestInterface2OrUint8Array testInterface2OrUint8ArrayMember; 292 TestInterface2OrUint8Array testInterface2OrUint8ArrayMember;
293 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL(V8TestInterface2OrUint8Array::t oImpl(isolate, testInterface2OrUint8ArrayMemberValue, testInterface2OrUint8Array Member, exceptionState), exceptionState); 293 TONATIVE_VOID_EXCEPTIONSTATE_ARGINTERNAL_NOTHROW(V8TestInterface2OrUint8 Array::toImpl(isolate, testInterface2OrUint8ArrayMemberValue, testInterface2OrUi nt8ArrayMember, exceptionState), exceptionState);
294 impl.setTestInterface2OrUint8ArrayMember(testInterface2OrUint8ArrayMembe r); 294 impl.setTestInterface2OrUint8ArrayMember(testInterface2OrUint8ArrayMembe r);
295 } 295 }
296 296
297 v8::Local<v8::Value> testInterfaceGarbageCollectedMemberValue = v8Object->Ge t(v8String(isolate, "testInterfaceGarbageCollectedMember")); 297 v8::Local<v8::Value> testInterfaceGarbageCollectedMemberValue = v8Object->Ge t(v8String(isolate, "testInterfaceGarbageCollectedMember"));
298 if (block.HasCaught()) { 298 if (block.HasCaught()) {
299 exceptionState.rethrowV8Exception(block.Exception()); 299 exceptionState.rethrowV8Exception(block.Exception());
300 return; 300 return;
301 } 301 }
302 if (testInterfaceGarbageCollectedMemberValue.IsEmpty() || testInterfaceGarba geCollectedMemberValue->IsUndefined()) { 302 if (testInterfaceGarbageCollectedMemberValue.IsEmpty() || testInterfaceGarba geCollectedMemberValue->IsUndefined()) {
303 // Do nothing. 303 // Do nothing.
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
413 } 413 }
414 414
415 v8::Local<v8::Value> unrestrictedDoubleMemberValue = v8Object->Get(v8String( isolate, "unrestrictedDoubleMember")); 415 v8::Local<v8::Value> unrestrictedDoubleMemberValue = v8Object->Get(v8String( isolate, "unrestrictedDoubleMember"));
416 if (block.HasCaught()) { 416 if (block.HasCaught()) {
417 exceptionState.rethrowV8Exception(block.Exception()); 417 exceptionState.rethrowV8Exception(block.Exception());
418 return; 418 return;
419 } 419 }
420 if (unrestrictedDoubleMemberValue.IsEmpty() || unrestrictedDoubleMemberValue ->IsUndefined()) { 420 if (unrestrictedDoubleMemberValue.IsEmpty() || unrestrictedDoubleMemberValue ->IsUndefined()) {
421 // Do nothing. 421 // Do nothing.
422 } else { 422 } else {
423 TONATIVE_VOID_EXCEPTIONSTATE(double, unrestrictedDoubleMember, toDouble( unrestrictedDoubleMemberValue, exceptionState), exceptionState); 423 TONATIVE_VOID_EXCEPTIONSTATE_NOTHROW(double, unrestrictedDoubleMember, t oDouble(unrestrictedDoubleMemberValue, exceptionState), exceptionState);
424 impl.setUnrestrictedDoubleMember(unrestrictedDoubleMember); 424 impl.setUnrestrictedDoubleMember(unrestrictedDoubleMember);
425 } 425 }
426 426
427 } 427 }
428 428
429 v8::Local<v8::Value> toV8(const TestDictionary& impl, v8::Local<v8::Object> crea tionContext, v8::Isolate* isolate) 429 v8::Local<v8::Value> toV8(const TestDictionary& impl, v8::Local<v8::Object> crea tionContext, v8::Isolate* isolate)
430 { 430 {
431 v8::Local<v8::Object> v8Object = v8::Object::New(isolate); 431 v8::Local<v8::Object> v8Object = v8::Object::New(isolate);
432 toV8TestDictionary(impl, v8Object, creationContext, isolate); 432 toV8TestDictionary(impl, v8Object, creationContext, isolate);
433 return v8Object; 433 return v8Object;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
564 } 564 }
565 565
566 TestDictionary NativeValueTraits<TestDictionary>::nativeValue(const v8::Local<v8 ::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState) 566 TestDictionary NativeValueTraits<TestDictionary>::nativeValue(const v8::Local<v8 ::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState)
567 { 567 {
568 TestDictionary impl; 568 TestDictionary impl;
569 V8TestDictionary::toImpl(isolate, value, impl, exceptionState); 569 V8TestDictionary::toImpl(isolate, value, impl, exceptionState);
570 return impl; 570 return impl;
571 } 571 }
572 572
573 } // namespace blink 573 } // namespace blink
OLDNEW
« no previous file with comments | « Source/bindings/tests/results/core/UnionTypesCore.cpp ('k') | Source/bindings/tests/results/core/V8TestDictionaryDerived.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698