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

Side by Side Diff: third_party/WebKit/Source/bindings/modules/v8/wasm/WasmResponseExtensions.cpp

Issue 2940933003: DO NOT SUBMIT results of new clang-format (Closed)
Patch Set: Created 3 years, 6 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 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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 #include "bindings/modules/v8/wasm/WasmResponseExtensions.h" 5 #include "bindings/modules/v8/wasm/WasmResponseExtensions.h"
6 6
7 #include "bindings/core/v8/ExceptionState.h" 7 #include "bindings/core/v8/ExceptionState.h"
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptPromiseResolver.h" 9 #include "bindings/core/v8/ScriptPromiseResolver.h"
10 #include "bindings/modules/v8/V8Response.h" 10 #include "bindings/modules/v8/V8Response.h"
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 215
216 // treat either case of parameter as 216 // treat either case of parameter as
217 // Promise.resolve(parameter) 217 // Promise.resolve(parameter)
218 // as per https://www.w3.org/2001/tag/doc/promises-guide#resolve-arguments 218 // as per https://www.w3.org/2001/tag/doc/promises-guide#resolve-arguments
219 219
220 // Ending with: 220 // Ending with:
221 // return Promise.resolve(parameter).then(compileCallback); 221 // return Promise.resolve(parameter).then(compileCallback);
222 V8SetReturnValue(args, ScriptPromise::Cast(script_state, args[0]) 222 V8SetReturnValue(args, ScriptPromise::Cast(script_state, args[0])
223 .Then(compile_callback) 223 .Then(compile_callback)
224 .V8Value()); 224 .V8Value());
225
226 } 225 }
227 226
228 } // namespace 227 } // namespace
229 228
230 void WasmResponseExtensions::Initialize(v8::Isolate* isolate) { 229 void WasmResponseExtensions::Initialize(v8::Isolate* isolate) {
231 if (RuntimeEnabledFeatures::WebAssemblyStreamingEnabled()) { 230 if (RuntimeEnabledFeatures::WebAssemblyStreamingEnabled()) {
232 isolate->SetWasmCompileStreamingCallback(WasmCompileStreamingImpl); 231 isolate->SetWasmCompileStreamingCallback(WasmCompileStreamingImpl);
233 } 232 }
234 } 233 }
235 234
236 } // namespace blink 235 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698