Re: [heycam/webidl] BREAKING: Convert the `unrestricted` keyword into an extended attribute (#857)

ExE-Boss commented on this pull request.



> @@ -10722,6 +10654,64 @@ for the specific requirements that the use of
 </div>
 
 
+<h4 oldids="dom-unrestricteddouble dom-unrestrictedfloat idl-unrestricted-double idl-unrestricted-float"
+    id="Unrestricted" extended-attribute lt="Unrestricted">[Unrestricted]</h5>
+
+If the [{{Unrestricted}}] [=extended attribute=] appears on one of the [=float types=],
+it creates a new IDL type such that that when an ECMAScript Number is converted to the IDL type,
+IEEE 754 non-finite, and special "not a number" values (NaNs) are allowed. [[!IEEE-754]]
+
+The [{{Unrestricted}}]
+extended attribute must
+[=takes no arguments|take no arguments=].
+
+A type annotated with the [{{Unrestricted}}] extended attribute must not appear
+in a [=read only=] attribute. A type that is not a [=float type=] must not

Because the conversion from `float` and `double` to an **ECMAScript** `number` doesn’t require it.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/heycam/webidl/pull/857#discussion_r395955549

Received on Saturday, 21 March 2020 03:05:27 UTC