Closed Bug 307961 Opened 19 years ago Closed 7 years ago

handle string->int conversion better

Categories

(Core :: XPConnect, enhancement)

x86
Linux
enhancement
Not set
normal

Tracking

()

RESOLVED INCOMPLETE

People

(Reporter: Biesinger, Unassigned)

Details

Currently, if one passes a JS string where IDL expects a character, something
strange happens (I didn't check what exactly was passed). Especially in the case
of a single-letter string, it'd be nice if the number conversion gave that
character, not something else (I suspect it gives 0).
I have encountered this. In V1.07, '1' == 49, the ASCII code of '1'. However, in V1.5, '1' == 1.
QA Contact: pschwartau → xpconnect
Assignee: dbradley → nobody
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.