Skip to content

Commit e3d8478

Browse files
committed
Generate a validation error on mapAsync early-reject
1 parent 66cb176 commit e3d8478

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spec/index.bs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3424,13 +3424,21 @@ The {{GPUMapMode}} flags determine how a {{GPUBuffer}} is mapped when calling
34243424

34253425
1. Let <var data-timeline=content>contentTimeline</var> be the current [=Content timeline=].
34263426
1. If |this|.{{GPUBuffer/[[pending_map]]}} is not `null`:
3427+
1. Issue the |early-reject steps| on the [=Device timeline=] of
3428+
|this|.{{GPUObjectBase/[[device]]}}.
34273429
1. Return [=a promise rejected with=] {{OperationError}}.
34283430
1. Let |p| be a new {{Promise}}.
34293431
1. Set |this|.{{GPUBuffer/[[pending_map]]}} to |p|.
34303432
1. Issue the |validation steps| on the [=Device timeline=] of
34313433
|this|.{{GPUObjectBase/[[device]]}}.
34323434
1. Return |p|.
34333435
</div>
3436+
<div data-timeline=device>
3437+
[=Device timeline=] |early-reject steps|:
3438+
3439+
1. [$Generate a validation error$].
3440+
1. Return.
3441+
</div>
34343442
<div data-timeline=device>
34353443
[=Device timeline=] |validation steps|:
34363444

0 commit comments

Comments
 (0)