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)
Core
JavaScript Engine
Tracking
()
RESOLVED
FIXED
mozilla49
| Tracking | Status | |
|---|---|---|
| firefox49 | --- | fixed |
People
(Reporter: ehsan.akhgari, Unassigned)
Details
Attachments
(1 file)
|
3.13 KB,
patch
|
jorendorff
:
review+
|
Details | Diff | Splinter Review |
<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)
Comment 1•10 years ago
|
||
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)
| Reporter | ||
Comment 2•10 years ago
|
||
Attachment #8744543 -
Flags: review?(jorendorff)
Updated•10 years ago
|
Attachment #8744543 -
Flags: review?(jorendorff) → review+
Comment 4•10 years ago
|
||
| bugherder | ||
Status: NEW → RESOLVED
Closed: 10 years ago
status-firefox49:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla49
You need to log in
before you can comment on or make changes to this bug.
Description
•