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:
Jason Orendorff 2013-06-06 22:48:00 -05:00
parent c6119a522c
commit e1d0acaba9
2 changed files with 8 additions and 7 deletions

View File

@ -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___

View File

@ -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
{