Skip to content

Commit a09c766

Browse files
caiolimaljharb
authored andcommitted
Normative: Changing 'SetViewValue' to use 'ToNumber' instead of 'ToInteger' (#1708)
Fixes an unintentional spec bug from #1515.
1 parent fe7f4c0 commit a09c766

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36846,7 +36846,7 @@ <h1>SetViewValue ( _view_, _requestIndex_, _isLittleEndian_, _type_, _value_ )</
3684636846
1. Assert: _view_ has a [[ViewedArrayBuffer]] internal slot.
3684736847
1. Let _getIndex_ be ? ToIndex(_requestIndex_).
3684836848
1. If ! IsBigIntElementType(_type_) is *true*, let _numberValue_ be ? ToBigInt(_value_).
36849-
1. Otherwise, let _numberValue_ be ? ToInteger(_value_).
36849+
1. Otherwise, let _numberValue_ be ? ToNumber(_value_).
3685036850
1. Set _isLittleEndian_ to ! ToBoolean(_isLittleEndian_).
3685136851
1. Let _buffer_ be _view_.[[ViewedArrayBuffer]].
3685236852
1. If IsDetachedBuffer(_buffer_) is *true*, throw a *TypeError* exception.

0 commit comments

Comments
 (0)