Closed Bug 301340 Opened 19 years ago Closed 19 years ago

js.obj : error LNK2019: unresolved external symbol _js_GetDependentStringChars referenced in function _Evaluate

Categories

(Core :: JavaScript Engine, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: timeless, Assigned: mrbkap)

Details

Attachments

(1 file)

narcissus doesn't build on windows because mrbkap entrailed a js private
function (js_GetDependentStringChars) using a js macro (JSSTRING_CHARS) in
jsshell (Evaluate) which is an embedding consumer.
Status: NEW → ASSIGNED
Attached patch use public apisSplinter Review
timeless was concerned about JS_GetStringChars returning NULL, but I don't
think that source can be a dependent string, so JS_GetStringChars shouldn't
need to allocate anything and we should be safe.
Attachment #189807 - Flags: review?(brendan)
Comment on attachment 189807 [details] [diff] [review]
use public apis

Brendan says r=him.
Attachment #189807 - Flags: review?(brendan) → review+
Furthermore (timeless!), JS_GetStringChars never returns null.  If there's an
OOM it returns a pointer into the dependent string's base string's chars, which
lacks only a NUL backstop terminator.

/be
Comment on attachment 189807 [details] [diff] [review]
use public apis

So this is not part of the build (unlike xpcshell), but a=me anyway -- get it
in so we can all move on ;-).

/be
Attachment #189807 - Flags: approval1.8b4+
Checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Flags: testcase-
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: