From 3e26690daed332a3ed415e4af0892b4fa33b0a28 Mon Sep 17 00:00:00 2001
From: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
Date: Sun, 22 Mar 2020 18:45:00 +0100
Subject: [PATCH] =?UTF-8?q?fix:=20Address=C2=A0review=C2=A0comments?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
index.bs | 24 +++++++++++++-----------
1 file changed, 13 insertions(+), 11 deletions(-)
diff --git a/index.bs b/index.bs
index c0e21418c..9e1663c5b 100644
--- a/index.bs
+++ b/index.bs
@@ -5972,7 +5972,8 @@ type that corresponds to the set of finite single-precision 32 bit
IEEE 754 floating point numbers. [[!IEEE-754]]
When defined with the [{{Unrestricted}}] [=extended attribute=], the {{float}} type
-additionally corresponds to IEEE 754 non-finite, and special "not a number" values (NaNs). [[!IEEE-754]]
+additionally corresponds to the single-precision 32 bit IEEE 754 non-finite,
+and special "not a number" values (NaNs). [[!IEEE-754]]
{{float}} constant values in IDL are
represented with
[Exposed=Window] interface GraphicsContext { - void setColorFloat(double red, double green, double blue); - void setColorUnrestrictedFloat([Unrestricted] double red, [Unrestricted] double green, [Unrestricted] double blue); + void setColorDouble(double red, double green, double blue); + void setColorUnrestrictedDouble([Unrestricted] double red, [Unrestricted] double green, [Unrestricted] double blue); };- In an ECMAScript implementation of the IDL, a call to setColor3f with + In an ECMAScript implementation of the IDL, a call to setColorDouble with Number values that are out of range for a {{double}} will result in an exception being thrown. @@ -10706,14 +10708,14 @@ for the specific requirements that the use of var context = getGraphicsContext(); // Calling the [Unrestricted] version uses allows NaN and non-finite numbers values: - context.setColorUnrestrictedFloat(NaN, +Infinity, -Infinity); + context.setColorUnrestrictedDouble(NaN, +Infinity, -Infinity); - // When setColorFloat is called, floating point values are allowed: - context.setColorFloat(-0.9, 1, 1.1); + // When setColorDouble is called, floating point values are allowed: + context.setColorDouble(-0.9, 1, 1.1); // The following will cause a TypeError to be thrown, since NaN and non-finite // number values are not allowed when [Unrestricted] is not specified: - context.setColorFloat(NaN, +Infinity, -Infinity); + context.setColorDouble(NaN, +Infinity, -Infinity);