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

Unified Diff: third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionary.cpp

Issue 2584443003: [Binding] Indent by 2 spaces in generated code. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
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 86b918a6ddfa3e7b1f31a9f89337561805783b4a..0e9a161dc4d223a01289d89ffe1a497056fe9105 100644
--- a/third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionary.cpp
+++ b/third_party/WebKit/Source/bindings/tests/results/core/V8TestDictionary.cpp
@@ -334,19 +334,19 @@ void V8TestDictionary::toImpl(v8::Isolate* isolate, v8::Local<v8::Value> v8Value
}
if (RuntimeEnabledFeatures::runtimeFeatureEnabled()) {
- v8::Local<v8::Value> runtimeMemberValue;
- if (!v8Object->Get(isolate->GetCurrentContext(), v8String(isolate, "runtimeMember")).ToLocal(&runtimeMemberValue)) {
- exceptionState.rethrowV8Exception(block.Exception());
+ v8::Local<v8::Value> runtimeMemberValue;
+ if (!v8Object->Get(isolate->GetCurrentContext(), v8String(isolate, "runtimeMember")).ToLocal(&runtimeMemberValue)) {
+ exceptionState.rethrowV8Exception(block.Exception());
+ return;
+ }
+ if (runtimeMemberValue.IsEmpty() || runtimeMemberValue->IsUndefined()) {
+ // Do nothing.
+ } else {
+ bool runtimeMember = toBoolean(isolate, runtimeMemberValue, exceptionState);
+ if (exceptionState.hadException())
return;
- }
- if (runtimeMemberValue.IsEmpty() || runtimeMemberValue->IsUndefined()) {
- // Do nothing.
- } else {
- bool runtimeMember = toBoolean(isolate, runtimeMemberValue, exceptionState);
- if (exceptionState.hadException())
- return;
- impl.setRuntimeMember(runtimeMember);
- }
+ impl.setRuntimeMember(runtimeMember);
+ }
}
v8::Local<v8::Value> stringArrayMemberValue;

Powered by Google App Engine
This is Rietveld 408576698