| Index: third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionary.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionary.cpp b/third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionary.cpp
|
| index 31f6a0c99132d2ba6f0567c0b443053a3a916b4c..d41d7e2cd333ef8af73c135b32581dc102eafc37 100644
|
| --- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionary.cpp
|
| +++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionary.cpp
|
| @@ -33,6 +33,7 @@ namespace blink {
|
|
|
| static const v8::Eternal<v8::Name>* eternalV8TestDictionaryKeys(v8::Isolate* isolate) {
|
| static const char* const kKeys[] = {
|
| + "anyInRecordMember",
|
| "anyMember",
|
| "booleanMember",
|
| "create",
|
| @@ -90,8 +91,22 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| const v8::Eternal<v8::Name>* keys = eternalV8TestDictionaryKeys(isolate);
|
| v8::TryCatch block(isolate);
|
| v8::Local<v8::Context> context = isolate->GetCurrentContext();
|
| + v8::Local<v8::Value> anyInRecordMemberValue;
|
| + if (!v8Object->Get(context, keys[0].Get(isolate)).ToLocal(&anyInRecordMemberValue)) {
|
| + exceptionState.RethrowV8Exception(block.Exception());
|
| + return;
|
| + }
|
| + if (anyInRecordMemberValue.IsEmpty() || anyInRecordMemberValue->IsUndefined()) {
|
| + // Do nothing.
|
| + } else {
|
| + Vector<std::pair<String, ScriptValue>> anyInRecordMember = NativeValueTraits<IDLRecord<IDLString, ScriptValue>>::NativeValue(isolate, anyInRecordMemberValue, exceptionState);
|
| + if (exceptionState.HadException())
|
| + return;
|
| + impl.setAnyInRecordMember(anyInRecordMember);
|
| + }
|
| +
|
| v8::Local<v8::Value> anyMemberValue;
|
| - if (!v8Object->Get(context, keys[0].Get(isolate)).ToLocal(&anyMemberValue)) {
|
| + if (!v8Object->Get(context, keys[1].Get(isolate)).ToLocal(&anyMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -103,7 +118,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> booleanMemberValue;
|
| - if (!v8Object->Get(context, keys[1].Get(isolate)).ToLocal(&booleanMemberValue)) {
|
| + if (!v8Object->Get(context, keys[2].Get(isolate)).ToLocal(&booleanMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -117,7 +132,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> createValue;
|
| - if (!v8Object->Get(context, keys[2].Get(isolate)).ToLocal(&createValue)) {
|
| + if (!v8Object->Get(context, keys[3].Get(isolate)).ToLocal(&createValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -131,7 +146,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> deprecatedCreateMemberValue;
|
| - if (!v8Object->Get(context, keys[3].Get(isolate)).ToLocal(&deprecatedCreateMemberValue)) {
|
| + if (!v8Object->Get(context, keys[4].Get(isolate)).ToLocal(&deprecatedCreateMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -146,7 +161,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> dictionaryMemberValue;
|
| - if (!v8Object->Get(context, keys[4].Get(isolate)).ToLocal(&dictionaryMemberValue)) {
|
| + if (!v8Object->Get(context, keys[5].Get(isolate)).ToLocal(&dictionaryMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -164,7 +179,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> doubleOrNullMemberValue;
|
| - if (!v8Object->Get(context, keys[5].Get(isolate)).ToLocal(&doubleOrNullMemberValue)) {
|
| + if (!v8Object->Get(context, keys[6].Get(isolate)).ToLocal(&doubleOrNullMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -180,7 +195,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> doubleOrStringMemberValue;
|
| - if (!v8Object->Get(context, keys[6].Get(isolate)).ToLocal(&doubleOrStringMemberValue)) {
|
| + if (!v8Object->Get(context, keys[7].Get(isolate)).ToLocal(&doubleOrStringMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -195,7 +210,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> doubleOrStringSequenceMemberValue;
|
| - if (!v8Object->Get(context, keys[7].Get(isolate)).ToLocal(&doubleOrStringSequenceMemberValue)) {
|
| + if (!v8Object->Get(context, keys[8].Get(isolate)).ToLocal(&doubleOrStringSequenceMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -209,7 +224,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> elementOrNullMemberValue;
|
| - if (!v8Object->Get(context, keys[8].Get(isolate)).ToLocal(&elementOrNullMemberValue)) {
|
| + if (!v8Object->Get(context, keys[9].Get(isolate)).ToLocal(&elementOrNullMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -227,7 +242,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> enumMemberValue;
|
| - if (!v8Object->Get(context, keys[9].Get(isolate)).ToLocal(&enumMemberValue)) {
|
| + if (!v8Object->Get(context, keys[10].Get(isolate)).ToLocal(&enumMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -249,7 +264,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> enumSequenceMemberValue;
|
| - if (!v8Object->Get(context, keys[10].Get(isolate)).ToLocal(&enumSequenceMemberValue)) {
|
| + if (!v8Object->Get(context, keys[11].Get(isolate)).ToLocal(&enumSequenceMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -271,7 +286,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> eventTargetMemberValue;
|
| - if (!v8Object->Get(context, keys[11].Get(isolate)).ToLocal(&eventTargetMemberValue)) {
|
| + if (!v8Object->Get(context, keys[12].Get(isolate)).ToLocal(&eventTargetMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -287,7 +302,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> garbageCollectedRecordMemberValue;
|
| - if (!v8Object->Get(context, keys[12].Get(isolate)).ToLocal(&garbageCollectedRecordMemberValue)) {
|
| + if (!v8Object->Get(context, keys[13].Get(isolate)).ToLocal(&garbageCollectedRecordMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -301,7 +316,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> internalDictionarySequenceMemberValue;
|
| - if (!v8Object->Get(context, keys[13].Get(isolate)).ToLocal(&internalDictionarySequenceMemberValue)) {
|
| + if (!v8Object->Get(context, keys[14].Get(isolate)).ToLocal(&internalDictionarySequenceMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -315,7 +330,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> longMemberValue;
|
| - if (!v8Object->Get(context, keys[14].Get(isolate)).ToLocal(&longMemberValue)) {
|
| + if (!v8Object->Get(context, keys[15].Get(isolate)).ToLocal(&longMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -329,7 +344,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> objectMemberValue;
|
| - if (!v8Object->Get(context, keys[15].Get(isolate)).ToLocal(&objectMemberValue)) {
|
| + if (!v8Object->Get(context, keys[16].Get(isolate)).ToLocal(&objectMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -345,7 +360,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> objectOrNullMemberValue;
|
| - if (!v8Object->Get(context, keys[16].Get(isolate)).ToLocal(&objectOrNullMemberValue)) {
|
| + if (!v8Object->Get(context, keys[17].Get(isolate)).ToLocal(&objectOrNullMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -363,7 +378,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> otherDoubleOrStringMemberValue;
|
| - if (!v8Object->Get(context, keys[17].Get(isolate)).ToLocal(&otherDoubleOrStringMemberValue)) {
|
| + if (!v8Object->Get(context, keys[18].Get(isolate)).ToLocal(&otherDoubleOrStringMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -378,7 +393,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> prefixGetMemberValue;
|
| - if (!v8Object->Get(context, keys[18].Get(isolate)).ToLocal(&prefixGetMemberValue)) {
|
| + if (!v8Object->Get(context, keys[19].Get(isolate)).ToLocal(&prefixGetMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -394,7 +409,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> recordMemberValue;
|
| - if (!v8Object->Get(context, keys[19].Get(isolate)).ToLocal(&recordMemberValue)) {
|
| + if (!v8Object->Get(context, keys[20].Get(isolate)).ToLocal(&recordMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -408,7 +423,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> restrictedDoubleMemberValue;
|
| - if (!v8Object->Get(context, keys[20].Get(isolate)).ToLocal(&restrictedDoubleMemberValue)) {
|
| + if (!v8Object->Get(context, keys[21].Get(isolate)).ToLocal(&restrictedDoubleMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -423,7 +438,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
|
|
| if (RuntimeEnabledFeatures::runtimeFeatureEnabled()) {
|
| v8::Local<v8::Value> runtimeMemberValue;
|
| - if (!v8Object->Get(context, keys[21].Get(isolate)).ToLocal(&runtimeMemberValue)) {
|
| + if (!v8Object->Get(context, keys[22].Get(isolate)).ToLocal(&runtimeMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -438,7 +453,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> stringArrayMemberValue;
|
| - if (!v8Object->Get(context, keys[22].Get(isolate)).ToLocal(&stringArrayMemberValue)) {
|
| + if (!v8Object->Get(context, keys[23].Get(isolate)).ToLocal(&stringArrayMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -452,7 +467,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> stringMemberValue;
|
| - if (!v8Object->Get(context, keys[23].Get(isolate)).ToLocal(&stringMemberValue)) {
|
| + if (!v8Object->Get(context, keys[24].Get(isolate)).ToLocal(&stringMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -466,7 +481,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> stringOrNullMemberValue;
|
| - if (!v8Object->Get(context, keys[24].Get(isolate)).ToLocal(&stringOrNullMemberValue)) {
|
| + if (!v8Object->Get(context, keys[25].Get(isolate)).ToLocal(&stringOrNullMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -482,7 +497,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> stringSequenceMemberValue;
|
| - if (!v8Object->Get(context, keys[25].Get(isolate)).ToLocal(&stringSequenceMemberValue)) {
|
| + if (!v8Object->Get(context, keys[26].Get(isolate)).ToLocal(&stringSequenceMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -496,7 +511,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> testInterface2OrUint8ArrayMemberValue;
|
| - if (!v8Object->Get(context, keys[26].Get(isolate)).ToLocal(&testInterface2OrUint8ArrayMemberValue)) {
|
| + if (!v8Object->Get(context, keys[27].Get(isolate)).ToLocal(&testInterface2OrUint8ArrayMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -511,7 +526,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> testInterfaceGarbageCollectedMemberValue;
|
| - if (!v8Object->Get(context, keys[27].Get(isolate)).ToLocal(&testInterfaceGarbageCollectedMemberValue)) {
|
| + if (!v8Object->Get(context, keys[28].Get(isolate)).ToLocal(&testInterfaceGarbageCollectedMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -527,7 +542,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> testInterfaceGarbageCollectedOrNullMemberValue;
|
| - if (!v8Object->Get(context, keys[28].Get(isolate)).ToLocal(&testInterfaceGarbageCollectedOrNullMemberValue)) {
|
| + if (!v8Object->Get(context, keys[29].Get(isolate)).ToLocal(&testInterfaceGarbageCollectedOrNullMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -545,7 +560,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> testInterfaceGarbageCollectedSequenceMemberValue;
|
| - if (!v8Object->Get(context, keys[29].Get(isolate)).ToLocal(&testInterfaceGarbageCollectedSequenceMemberValue)) {
|
| + if (!v8Object->Get(context, keys[30].Get(isolate)).ToLocal(&testInterfaceGarbageCollectedSequenceMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -559,7 +574,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> testInterfaceMemberValue;
|
| - if (!v8Object->Get(context, keys[30].Get(isolate)).ToLocal(&testInterfaceMemberValue)) {
|
| + if (!v8Object->Get(context, keys[31].Get(isolate)).ToLocal(&testInterfaceMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -575,7 +590,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> testInterfaceOrNullMemberValue;
|
| - if (!v8Object->Get(context, keys[31].Get(isolate)).ToLocal(&testInterfaceOrNullMemberValue)) {
|
| + if (!v8Object->Get(context, keys[32].Get(isolate)).ToLocal(&testInterfaceOrNullMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -593,7 +608,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> testInterfaceSequenceMemberValue;
|
| - if (!v8Object->Get(context, keys[32].Get(isolate)).ToLocal(&testInterfaceSequenceMemberValue)) {
|
| + if (!v8Object->Get(context, keys[33].Get(isolate)).ToLocal(&testInterfaceSequenceMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -607,7 +622,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> testObjectSequenceMemberValue;
|
| - if (!v8Object->Get(context, keys[33].Get(isolate)).ToLocal(&testObjectSequenceMemberValue)) {
|
| + if (!v8Object->Get(context, keys[34].Get(isolate)).ToLocal(&testObjectSequenceMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -621,7 +636,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> uint8ArrayMemberValue;
|
| - if (!v8Object->Get(context, keys[34].Get(isolate)).ToLocal(&uint8ArrayMemberValue)) {
|
| + if (!v8Object->Get(context, keys[35].Get(isolate)).ToLocal(&uint8ArrayMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -637,7 +652,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> unionInRecordMemberValue;
|
| - if (!v8Object->Get(context, keys[35].Get(isolate)).ToLocal(&unionInRecordMemberValue)) {
|
| + if (!v8Object->Get(context, keys[36].Get(isolate)).ToLocal(&unionInRecordMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -651,7 +666,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> unionWithTypedefsValue;
|
| - if (!v8Object->Get(context, keys[36].Get(isolate)).ToLocal(&unionWithTypedefsValue)) {
|
| + if (!v8Object->Get(context, keys[37].Get(isolate)).ToLocal(&unionWithTypedefsValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -666,7 +681,7 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
|
| }
|
|
|
| v8::Local<v8::Value> unrestrictedDoubleMemberValue;
|
| - if (!v8Object->Get(context, keys[37].Get(isolate)).ToLocal(&unrestrictedDoubleMemberValue)) {
|
| + if (!v8Object->Get(context, keys[38].Get(isolate)).ToLocal(&unrestrictedDoubleMemberValue)) {
|
| exceptionState.RethrowV8Exception(block.Exception());
|
| return;
|
| }
|
| @@ -690,6 +705,17 @@ v8::Local<v8::Value> TestDictionary::ToV8Impl(v8::Local<v8::Object> creationCont
|
| bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictionary, v8::Local<v8::Object> creationContext, v8::Isolate* isolate) {
|
| const v8::Eternal<v8::Name>* keys = eternalV8TestDictionaryKeys(isolate);
|
| v8::Local<v8::Context> context = isolate->GetCurrentContext();
|
| + v8::Local<v8::Value> anyInRecordMemberValue;
|
| + bool anyInRecordMemberHasValueOrDefault = false;
|
| + if (impl.hasAnyInRecordMember()) {
|
| + anyInRecordMemberValue = ToV8(impl.anyInRecordMember(), creationContext, isolate);
|
| + anyInRecordMemberHasValueOrDefault = true;
|
| + }
|
| + if (anyInRecordMemberHasValueOrDefault &&
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[0].Get(isolate), anyInRecordMemberValue))) {
|
| + return false;
|
| + }
|
| +
|
| v8::Local<v8::Value> anyMemberValue;
|
| bool anyMemberHasValueOrDefault = false;
|
| if (impl.hasAnyMember()) {
|
| @@ -700,7 +726,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| anyMemberHasValueOrDefault = true;
|
| }
|
| if (anyMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[0].Get(isolate), anyMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[1].Get(isolate), anyMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -711,7 +737,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| booleanMemberHasValueOrDefault = true;
|
| }
|
| if (booleanMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[1].Get(isolate), booleanMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[2].Get(isolate), booleanMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -722,7 +748,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| createHasValueOrDefault = true;
|
| }
|
| if (createHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[2].Get(isolate), createValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[3].Get(isolate), createValue))) {
|
| return false;
|
| }
|
|
|
| @@ -733,7 +759,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| deprecatedCreateMemberHasValueOrDefault = true;
|
| }
|
| if (deprecatedCreateMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[3].Get(isolate), deprecatedCreateMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[4].Get(isolate), deprecatedCreateMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -745,7 +771,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| dictionaryMemberHasValueOrDefault = true;
|
| }
|
| if (dictionaryMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[4].Get(isolate), dictionaryMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[5].Get(isolate), dictionaryMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -759,7 +785,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| doubleOrNullMemberHasValueOrDefault = true;
|
| }
|
| if (doubleOrNullMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[5].Get(isolate), doubleOrNullMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[6].Get(isolate), doubleOrNullMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -773,7 +799,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| doubleOrStringMemberHasValueOrDefault = true;
|
| }
|
| if (doubleOrStringMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[6].Get(isolate), doubleOrStringMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[7].Get(isolate), doubleOrStringMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -784,7 +810,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| doubleOrStringSequenceMemberHasValueOrDefault = true;
|
| }
|
| if (doubleOrStringSequenceMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[7].Get(isolate), doubleOrStringSequenceMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[8].Get(isolate), doubleOrStringSequenceMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -798,7 +824,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| elementOrNullMemberHasValueOrDefault = true;
|
| }
|
| if (elementOrNullMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[8].Get(isolate), elementOrNullMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[9].Get(isolate), elementOrNullMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -812,7 +838,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| enumMemberHasValueOrDefault = true;
|
| }
|
| if (enumMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[9].Get(isolate), enumMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[10].Get(isolate), enumMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -823,7 +849,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| enumSequenceMemberHasValueOrDefault = true;
|
| }
|
| if (enumSequenceMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[10].Get(isolate), enumSequenceMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[11].Get(isolate), enumSequenceMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -834,7 +860,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| eventTargetMemberHasValueOrDefault = true;
|
| }
|
| if (eventTargetMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[11].Get(isolate), eventTargetMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[12].Get(isolate), eventTargetMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -845,7 +871,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| garbageCollectedRecordMemberHasValueOrDefault = true;
|
| }
|
| if (garbageCollectedRecordMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[12].Get(isolate), garbageCollectedRecordMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[13].Get(isolate), garbageCollectedRecordMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -856,7 +882,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| internalDictionarySequenceMemberHasValueOrDefault = true;
|
| }
|
| if (internalDictionarySequenceMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[13].Get(isolate), internalDictionarySequenceMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[14].Get(isolate), internalDictionarySequenceMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -870,7 +896,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| longMemberHasValueOrDefault = true;
|
| }
|
| if (longMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[14].Get(isolate), longMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[15].Get(isolate), longMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -882,7 +908,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| objectMemberHasValueOrDefault = true;
|
| }
|
| if (objectMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[15].Get(isolate), objectMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[16].Get(isolate), objectMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -897,7 +923,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| objectOrNullMemberHasValueOrDefault = true;
|
| }
|
| if (objectOrNullMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[16].Get(isolate), objectOrNullMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[17].Get(isolate), objectOrNullMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -911,7 +937,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| otherDoubleOrStringMemberHasValueOrDefault = true;
|
| }
|
| if (otherDoubleOrStringMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[17].Get(isolate), otherDoubleOrStringMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[18].Get(isolate), otherDoubleOrStringMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -923,7 +949,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| prefixGetMemberHasValueOrDefault = true;
|
| }
|
| if (prefixGetMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[18].Get(isolate), prefixGetMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[19].Get(isolate), prefixGetMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -934,7 +960,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| recordMemberHasValueOrDefault = true;
|
| }
|
| if (recordMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[19].Get(isolate), recordMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[20].Get(isolate), recordMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -948,7 +974,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| restrictedDoubleMemberHasValueOrDefault = true;
|
| }
|
| if (restrictedDoubleMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[20].Get(isolate), restrictedDoubleMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[21].Get(isolate), restrictedDoubleMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -959,7 +985,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| runtimeMemberHasValueOrDefault = true;
|
| }
|
| if (runtimeMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[21].Get(isolate), runtimeMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[22].Get(isolate), runtimeMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -970,7 +996,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| stringArrayMemberHasValueOrDefault = true;
|
| }
|
| if (stringArrayMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[22].Get(isolate), stringArrayMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[23].Get(isolate), stringArrayMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -981,7 +1007,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| stringMemberHasValueOrDefault = true;
|
| }
|
| if (stringMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[23].Get(isolate), stringMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[24].Get(isolate), stringMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -995,7 +1021,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| stringOrNullMemberHasValueOrDefault = true;
|
| }
|
| if (stringOrNullMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[24].Get(isolate), stringOrNullMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[25].Get(isolate), stringOrNullMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -1009,7 +1035,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| stringSequenceMemberHasValueOrDefault = true;
|
| }
|
| if (stringSequenceMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[25].Get(isolate), stringSequenceMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[26].Get(isolate), stringSequenceMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -1020,7 +1046,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| testInterface2OrUint8ArrayMemberHasValueOrDefault = true;
|
| }
|
| if (testInterface2OrUint8ArrayMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[26].Get(isolate), testInterface2OrUint8ArrayMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[27].Get(isolate), testInterface2OrUint8ArrayMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -1031,7 +1057,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| testInterfaceGarbageCollectedMemberHasValueOrDefault = true;
|
| }
|
| if (testInterfaceGarbageCollectedMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[27].Get(isolate), testInterfaceGarbageCollectedMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[28].Get(isolate), testInterfaceGarbageCollectedMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -1045,7 +1071,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| testInterfaceGarbageCollectedOrNullMemberHasValueOrDefault = true;
|
| }
|
| if (testInterfaceGarbageCollectedOrNullMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[28].Get(isolate), testInterfaceGarbageCollectedOrNullMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[29].Get(isolate), testInterfaceGarbageCollectedOrNullMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -1059,7 +1085,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| testInterfaceGarbageCollectedSequenceMemberHasValueOrDefault = true;
|
| }
|
| if (testInterfaceGarbageCollectedSequenceMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[29].Get(isolate), testInterfaceGarbageCollectedSequenceMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[30].Get(isolate), testInterfaceGarbageCollectedSequenceMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -1070,7 +1096,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| testInterfaceMemberHasValueOrDefault = true;
|
| }
|
| if (testInterfaceMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[30].Get(isolate), testInterfaceMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[31].Get(isolate), testInterfaceMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -1084,7 +1110,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| testInterfaceOrNullMemberHasValueOrDefault = true;
|
| }
|
| if (testInterfaceOrNullMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[31].Get(isolate), testInterfaceOrNullMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[32].Get(isolate), testInterfaceOrNullMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -1098,7 +1124,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| testInterfaceSequenceMemberHasValueOrDefault = true;
|
| }
|
| if (testInterfaceSequenceMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[32].Get(isolate), testInterfaceSequenceMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[33].Get(isolate), testInterfaceSequenceMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -1109,7 +1135,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| testObjectSequenceMemberHasValueOrDefault = true;
|
| }
|
| if (testObjectSequenceMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[33].Get(isolate), testObjectSequenceMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[34].Get(isolate), testObjectSequenceMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -1120,7 +1146,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| uint8ArrayMemberHasValueOrDefault = true;
|
| }
|
| if (uint8ArrayMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[34].Get(isolate), uint8ArrayMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[35].Get(isolate), uint8ArrayMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -1131,7 +1157,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| unionInRecordMemberHasValueOrDefault = true;
|
| }
|
| if (unionInRecordMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[35].Get(isolate), unionInRecordMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[36].Get(isolate), unionInRecordMemberValue))) {
|
| return false;
|
| }
|
|
|
| @@ -1142,7 +1168,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| unionWithTypedefsHasValueOrDefault = true;
|
| }
|
| if (unionWithTypedefsHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[36].Get(isolate), unionWithTypedefsValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[37].Get(isolate), unionWithTypedefsValue))) {
|
| return false;
|
| }
|
|
|
| @@ -1156,7 +1182,7 @@ bool toV8TestDictionary(const TestDictionary& impl, v8::Local<v8::Object> dictio
|
| unrestrictedDoubleMemberHasValueOrDefault = true;
|
| }
|
| if (unrestrictedDoubleMemberHasValueOrDefault &&
|
| - !V8CallBoolean(dictionary->CreateDataProperty(context, keys[37].Get(isolate), unrestrictedDoubleMemberValue))) {
|
| + !V8CallBoolean(dictionary->CreateDataProperty(context, keys[38].Get(isolate), unrestrictedDoubleMemberValue))) {
|
| return false;
|
| }
|
|
|
|
|