Table-ize the token kinds

NEW
Unassigned

Status

()

Core
JavaScript Engine
--
minor
7 years ago
4 years ago

People

(Reporter: Waldo, Unassigned)

Tracking

Trunk
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

7 years ago
We have an enum for all token kinds, and we then repeat every token kind in a function to convert a token kind to a C string in DEBUG code.  A table would let us not repeat ourselves quite so much (although it would have the problem that it wouldn't let us treat TOK_LIMIT as not a valid token kind).
(Assignee)

Updated

4 years ago
Assignee: general → nobody
You need to log in before you can comment on or make changes to this bug.