Closed Bug 564884 Opened 15 years ago Closed 9 years ago

const on JS_GetStringChars and JS_GetStringCharsZ seems to be backwards

Categories

(Core :: JavaScript Engine, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 1037869

People

(Reporter: bzbarsky, Unassigned)

Details

JS_GetStringCharsZ returns chars the string actually "owns" (in the sense that they're not chars from some string it depends on). But it returns chars that are const. JS_GetStringChars returns chars that could well come from the string ours depends on, but it doesn't return const jschar*. JS_GetStringChars should almost certainly return const; can't speak to the other.
Assignee: general → nobody
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.