Closed Bug 1289051 Opened 8 years ago Closed 8 years ago

Add JS_ReportError*Latin1 variants

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla51
Tracking Status
firefox50 --- affected
firefox51 --- fixed

People

(Reporter: arai, Assigned: arai)

References

Details

Attachments

(1 file)

(derived from bug 1283710) JS_ReportError* without "UC" suffix is ASCII variant, but actually accepts Latin1. So, we'd better add Latin1 variant and use it instead. the plan is following: 1. Add Latin1 variant 2. Use Latin1 in consumers 3. Remove ASCII variant
> 2. Use Latin1 in consumers actually, use Latin1 variant in consumers, and fix if non-Latin1 encoding is used.
Depends on: 1290422
updated. 1. Add Latin1 variant 2. Add UTF8 variant 3. Use Latin1 or UTF8 in consumers, depending each case 4. Remove ASCII variant If the consumer uses pure ASCII, it should be replaced with UTF8, to avoid the conversion from Latin1 to UTF8.
Assignee: nobody → arai.unmht
This is just a copy of the ASCII variant of JS_ReportError*, that is using ArgumentsAreASCII (that is actually Latin1). To replace the consumer of ASCII variant to use either Latin1 or UTF8 variant incrementally, added Latin1 variant instead of renaming ASCII variant to Latin1. ASCII variant will be removed in bug 1289050, after replacing all consumers.
Attachment #8781244 - Flags: review?(evilpies)
Comment on attachment 8781244 [details] [diff] [review] Add JS_ReportError*Latin1 variants. Review of attachment 8781244 [details] [diff] [review]: ----------------------------------------------------------------- Ah I see. Nice to see somebody cleanup our error reporting code :)
Attachment #8781244 - Flags: review?(evilpies) → review+
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla51
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: