#ifndef vm_GlobalObject_inl_h
#define vm_GlobalObject_inl_h
#include "vm/GlobalObject.h"
#include "mozilla/Assertions.h"
#include "vm/JSContext.h"
#include "vm/ObjectOperations-inl.h"
inline bool js::GlobalObject::setIntrinsicValue(
JSContext* cx, Handle<GlobalObject*> global, HandlePropertyName name,
HandleValue value) {
MOZ_ASSERT(cx->runtime()->isSelfHostingGlobal(global));
RootedObject holder(cx, GlobalObject::getIntrinsicsHolder(cx, global));
if (!holder) {
return false;
}
return SetProperty(cx, holder, name, value);
}
#endif