Closed Bug 1266804 Opened 10 years ago Closed 10 years ago

js::Unbox() shouldn't declared inline in Class.h

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla49
Tracking Status
firefox49 --- fixed

People

(Reporter: ehsan.akhgari, Unassigned)

Details

Attachments

(1 file)

<https://dxr.mozilla.org/mozilla-central/source/js/public/Class.h#963> This causes embedders who call this function to always get a warning they can't bypass, like: ../deps/spidershim/build-debug/dist/include/js/Class.h:964:1: warning: inline function 'js::Unbox' is not defined [-Wundefined-inline] Unbox(JSContext* cx, JS::HandleObject obj, JS::MutableHandleValue vp); ^ ../deps/spidershim/src/v8stringobject.cc:52:12: note: used here if (!js::Unbox(cx, thisObj, &unboxedVal)) { ^ Jason, should we fix this?
Flags: needinfo?(jorendorff)
Yes. The definition is in jsobjinlines.h, but AFAICT it shouldn't be. Moving to jsobj.cpp and removing `inline` from the declaration would be fine.
Flags: needinfo?(jorendorff)
Attachment #8744543 - Flags: review?(jorendorff)
Attachment #8744543 - Flags: review?(jorendorff) → review+
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: