FWIW, the spec has two main places this comes up (in the positive), near
annotations and later with numeric literals. In the annotations section
only
'.'s are mentioned. Near literals case has the ambiguous phrase: "or
validates
as type double".
I doubt in practice actual asm.js code cares, so I would say we could push
back
for an edit either way round? Both are equally expressive. Allowing e as a
marker is slightly smaller for some constants.
What do you guys think?
ANNOTATIONS:
In the first case, the variable type is double if n's source contains the
character .; otherwise n may be an integer literal in the range [-231,
232), in
which case the variable type is int.
LITERALS:
succeeds with type double if the source contains a . character; or
validates as
type double;
https://codereview.chromium.org/1201783003/
--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
---
You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.