Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/src/wasm/streaming-decoder.h')
-rw-r--r--deps/v8/src/wasm/streaming-decoder.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/deps/v8/src/wasm/streaming-decoder.h b/deps/v8/src/wasm/streaming-decoder.h
index 7b986bc28b0..e14c32daf39 100644
--- a/deps/v8/src/wasm/streaming-decoder.h
+++ b/deps/v8/src/wasm/streaming-decoder.h
@@ -65,8 +65,13 @@ class V8_EXPORT_PRIVATE StreamingDecoder {
void Abort();
- // Notify the StreamingDecoder that there has been an compilation error.
- void NotifyError() { ok_ = false; }
+ // Notify the StreamingDecoder that compilation ended and the
+ // StreamingProcessor should not be called anymore.
+ void NotifyCompilationEnded() {
+ // We set {ok_} to false to turn all future calls to the StreamingDecoder
+ // into no-ops.
+ ok_ = false;
+ }
private:
// TODO(ahaas): Put the whole private state of the StreamingDecoder into the