mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 879831, part 2 - Move JSObject::asModule from Module.h to jsobjinlines.h since it requires another inline function defined in that header. r=njn.
This commit is contained in:
parent
c6119a522c
commit
e1d0acaba9
@ -33,11 +33,4 @@ class Module : public JSObject {
|
||||
|
||||
} // namespace js
|
||||
|
||||
inline js::Module &
|
||||
JSObject::asModule()
|
||||
{
|
||||
JS_ASSERT(isModule());
|
||||
return *static_cast<js::Module *>(this);
|
||||
}
|
||||
|
||||
#endif // Module_h___
|
||||
|
@ -23,6 +23,7 @@
|
||||
#include "jstypedarray.h"
|
||||
#include "jswrapper.h"
|
||||
|
||||
#include "builtin/Module.h"
|
||||
#include "gc/Barrier.h"
|
||||
#include "gc/Marking.h"
|
||||
#include "js/MemoryMetrics.h"
|
||||
@ -928,6 +929,13 @@ JSObject::asScriptSource()
|
||||
return *static_cast<js::ScriptSourceObject *>(this);
|
||||
}
|
||||
|
||||
inline js::Module &
|
||||
JSObject::asModule()
|
||||
{
|
||||
JS_ASSERT(isModule());
|
||||
return *static_cast<js::Module *>(this);
|
||||
}
|
||||
|
||||
inline bool
|
||||
JSObject::isDebugScope() const
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user