[gutter] Support FF quasi-octal numbers

RESOLVED FIXED

Status

Tamarin
Self-hosting compiler (ESC)
RESOLVED FIXED
10 years ago
10 years ago

People

(Reporter: Lars T Hansen, Unassigned)

Tracking

Details

Attachments

(1 attachment)

(Reporter)

Description

10 years ago
Firefox treats digit strings starting with 0 but containing 8 or 9 as decimal, eg "09".
(Reporter)

Updated

10 years ago
Status: NEW → ASSIGNED
(Reporter)

Comment 1

10 years ago
Other cases:

  0000008 => 8
  009.5 => 9.5

FF generates warnings for these.
(Reporter)

Comment 2

10 years ago
More cases:
  00.3 => error (missing semicolon)
  035.3 => error (missing semicolon)

IOW, if it looks like an octal int then it is an octal int; only the digits 8 or 9 take us back into a mode where we are lexing a decimal number, and only then are . and e allowed.
(Reporter)

Comment 3

10 years ago
Created attachment 311181 [details] [diff] [review]
Patch
Attachment #311181 - Flags: review?(jodyer)

Updated

10 years ago
Attachment #311181 - Flags: review?(jodyer) → review+
(Reporter)

Comment 4

10 years ago
Changeset 486:823d5884bbbc
Status: ASSIGNED → RESOLVED
Last Resolved: 10 years ago
Resolution: --- → FIXED
(Reporter)

Comment 5

10 years ago
That fix for some reason never made it into the repository.  New changeset: 491:4778587ed868
You need to log in before you can comment on or make changes to this bug.