Skip to content

Commit

Permalink
Normative: explicitly specify order of operations in MakeTime (#2120)
Browse files Browse the repository at this point in the history
  • Loading branch information
bakkot authored and ljharb committed Oct 7, 2020
1 parent 16abdfe commit 2cf5a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec.html
Original file line number Diff line number Diff line change
Expand Up @@ -28257,7 +28257,7 @@ <h1>MakeTime ( _hour_, _min_, _sec_, _ms_ )</h1>
1. Let _m_ be ! ToInteger(_min_).
1. Let _s_ be ! ToInteger(_sec_).
1. Let _milli_ be ! ToInteger(_ms_).
1. Let _t_ be _h_ `*` msPerHour `+` _m_ `*` msPerMinute `+` _s_ `*` msPerSecond `+` _milli_, performing the arithmetic according to IEEE 754-2019 rules (that is, as if using the ECMAScript operators `*` and `+`).
1. Let _t_ be ((_h_ `*` msPerHour `+` _m_ `*` msPerMinute) `+` _s_ `*` msPerSecond) `+` _milli_, performing the arithmetic according to IEEE 754-2019 rules (that is, as if using the ECMAScript operators `*` and `+`).
1. Return _t_.
</emu-alg>
</emu-clause>
Expand Down

0 comments on commit 2cf5a6f

Please sign in to comment.