Skip to content

Commit edfffd9

Browse files
authored
Change mapAsync to also early-reject if already mapped (#4787)
Not just if already _pending_ mapping.
1 parent f1b76ce commit edfffd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3521,7 +3521,7 @@ The {{GPUMapMode}} flags determine how a {{GPUBuffer}} is mapped when calling
35213521
[=Content timeline=] steps:
35223522

35233523
1. Let <var data-timeline=content>contentTimeline</var> be the current [=Content timeline=].
3524-
1. If |this|.{{GPUBuffer/[[pending_map]]}} is not `null`:
3524+
1. If |this|.{{GPUBuffer/mapState}} is not {{GPUBufferMapState/"unmapped"}}:
35253525
1. Issue the |early-reject steps| on the [=Device timeline=] of
35263526
|this|.{{GPUObjectBase/[[device]]}}.
35273527
1. Return [=a promise rejected with=] {{OperationError}}.

0 commit comments

Comments
 (0)