From 2cf5a6fe3bb4293336b142c646347e7f431a8d1c Mon Sep 17 00:00:00 2001 From: Kevin Gibbons Date: Wed, 7 Oct 2020 15:57:30 -0700 Subject: [PATCH] Normative: explicitly specify order of operations in MakeTime (#2120) --- spec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec.html b/spec.html index 821266608f..f42b7b3147 100644 --- a/spec.html +++ b/spec.html @@ -28257,7 +28257,7 @@

MakeTime ( _hour_, _min_, _sec_, _ms_ )

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_.