Closed Bug 663552 Opened 14 years ago Closed 13 years ago

JS_BufferIsCompilableUnit should not use CESU-8 conversion for UTF-8 input

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: mwu, Unassigned)

References

Details

CESU-8 is not UTF-8. They differ when encoding codepoints greater than 0xFFFF. So JS_BufferIsCompilableUnit needs a different way to convert from utf-8 to utf-16.
JS_BufferIsCompilableUnit takes UTF-8 unconditionally now.
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.