Skip to content

Commit

Permalink
Clarify popErrorScope() rejects with OperationError if the device is …
Browse files Browse the repository at this point in the history
…lost (gpuweb#433)
  • Loading branch information
austinEng authored and kainino0x committed Nov 4, 2019
1 parent aa266bd commit c269466
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion design/ErrorHandling.md
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ If an error is not captured by an error scope, it is passed out to the enclosing

If there are no error scopes on the stack, `popErrorScope()` throws OperationError.

If the device is lost, `popErrorScope()` always rejects.
If the device is lost, `popErrorScope()` always rejects with OperationError.

\* Error scope state is **per-device, per-execution-context**.
That is, when a `GPUDevice` is posted to a Worker for the first time, the new `GPUDevice` copy's error scope stack is empty.
Expand Down
2 changes: 1 addition & 1 deletion spec/index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1951,7 +1951,7 @@ partial interface GPUDevice {
</script>

{{GPUDevice/popErrorScope()}} throws {{OperationError}} if there are no error scopes on the stack.

{{GPUDevice/popErrorScope()}} rejects with {{OperationError}} if the device is lost.

## Telemetry ## {#telemetry}

Expand Down

0 comments on commit c269466

Please sign in to comment.