JSMSG_CANT_CONVERT_TO mapped to 35_TO in self-hosted code

RESOLVED FIXED in mozilla22

Status

()

Core
JavaScript Engine
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: Norbert Lindenberg, Assigned: Norbert Lindenberg)

Tracking

unspecified
mozilla22
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment, 1 obsolete attachment)

(Assignee)

Description

5 years ago
The message id JSMSG_CANT_CONVERT_TO, when used in self-hosted JavaScript code, is mapped to 35_TO, leading to an error when initializing the self-hosting global:

self-hosted:123:0 SyntaxError: identifier starts immediately after numeric literal:
self-hosted:123:0         ThrowError(35_TO, ToString(v), "object");
self-hosted:123:0 ...................^
(Assignee)

Comment 1

5 years ago
Created attachment 720240 [details] [diff] [review]
patch
Assignee: general → mozillabugs
Status: NEW → ASSIGNED
Attachment #720240 - Flags: review?(tschneidereit)
(Assignee)

Comment 2

5 years ago
Created attachment 720241 [details] [diff] [review]
patch
(Assignee)

Updated

5 years ago
Attachment #720241 - Flags: review?(tschneidereit)
(Assignee)

Updated

5 years ago
Attachment #720240 - Attachment is obsolete: true
Attachment #720240 - Flags: review?(tschneidereit)
(Assignee)

Updated

5 years ago
Blocks: 769871
Attachment #720241 - Attachment is patch: true
Attachment #720241 - Flags: review?(tschneidereit) → review+
https://hg.mozilla.org/mozilla-central/rev/b6fe70978ee5
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla22
You need to log in before you can comment on or make changes to this bug.