Skip to content

Commit 72b7298

Browse files
committed
src: hopefully satisfy secretive format-cpp
1 parent 778240f commit 72b7298

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

src/api/environment.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ void SetIsolateMiscHandlers(v8::Isolate* isolate, const IsolateSettings& s) {
255255
isolate->SetAllowWasmCodeGenerationCallback(allow_wasm_codegen_cb);
256256

257257
Mutex::ScopedLock lock(node::per_process::cli_options_mutex);
258-
if (per_process::cli_options->get_per_isolate_options()->get_per_env_options()
258+
if (per_process::cli_options->get_per_isolate_options()
259+
->get_per_env_options()
259260
->experimental_fetch) {
260261
isolate->SetWasmStreamingCallback(wasm_web_api::StartStreamingCompilation);
261262
}

src/env.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ constexpr size_t kFsStatsBufferLength =
552552
V(udp_constructor_function, v8::Function) \
553553
V(url_constructor_function, v8::Function) \
554554
V(wasm_streaming_compilation_impl, v8::Function) \
555-
V(wasm_streaming_object_constructor, v8::Function) \
555+
V(wasm_streaming_object_constructor, v8::Function)
556556

557557
class Environment;
558558
struct AllocatedBuffer;

src/node_wasm_web_api.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ void WasmStreamingObject::Push(
9595
}
9696

9797
// Forward the data to V8. Internally, V8 will make a copy.
98-
obj->streaming_->OnBytesReceived(
99-
static_cast<const uint8_t*>(bytes) + offset, size);
98+
obj->streaming_->OnBytesReceived(static_cast<const uint8_t*>(bytes) + offset,
99+
size);
100100
obj->wasm_size_ += size;
101101
}
102102

@@ -150,7 +150,7 @@ void StartStreamingCompilation(
150150
// instantiateStreaming).
151151
v8::Local<v8::Function> impl = env->wasm_streaming_compilation_impl();
152152
CHECK(!impl.IsEmpty());
153-
v8::Local<v8::Value> args[] = { obj, info[0] };
153+
v8::Local<v8::Value> args[] = {obj, info[0]};
154154

155155
// Hand control to the JavaScript implementation. It should never throw an
156156
// error, but if it does, we leave it to the calling V8 code to handle that

src/node_wasm_web_api.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,7 @@ class WasmStreamingObject final : public BaseObject {
4444
// This is a v8::WasmStreamingCallback implementation that must be passed to
4545
// v8::Isolate::SetWasmStreamingCallback when setting up the isolate in order to
4646
// enable the WebAssembly.(compile|instantiate)Streaming APIs.
47-
void StartStreamingCompilation(
48-
const v8::FunctionCallbackInfo<v8::Value>& args);
47+
void StartStreamingCompilation(const v8::FunctionCallbackInfo<v8::Value>& args);
4948

5049
} // namespace wasm_web_api
5150
} // namespace node

0 commit comments

Comments
 (0)