Bug 728105 - Remove JSObject::getThrowTypeError. r=bhackett

This commit is contained in:
Jeff Walden 2012-02-16 19:10:59 -08:00
parent 850206480a
commit 8d23f9b616
2 changed files with 3 additions and 11 deletions

View File

@ -100,12 +100,6 @@ using namespace js;
using namespace js::gc;
using namespace js::types;
inline JSObject *
JSObject::getThrowTypeError() const
{
return global().getThrowTypeError();
}
JSBool
js_GetArgsValue(JSContext *cx, StackFrame *fp, Value *vp)
{
@ -475,8 +469,8 @@ strictargs_resolve(JSContext *cx, JSObject *obj, jsid id, uintN flags, JSObject
}
attrs = JSPROP_PERMANENT | JSPROP_GETTER | JSPROP_SETTER | JSPROP_SHARED;
getter = CastAsPropertyOp(argsobj.getThrowTypeError());
setter = CastAsStrictPropertyOp(argsobj.getThrowTypeError());
getter = CastAsPropertyOp(argsobj.global().getThrowTypeError());
setter = CastAsStrictPropertyOp(argsobj.global().getThrowTypeError());
}
Value undef = UndefinedValue();
@ -1329,7 +1323,7 @@ fun_resolve(JSContext *cx, JSObject *obj, jsid id, uintN flags,
StrictPropertyOp setter;
uintN attrs = JSPROP_PERMANENT;
if (fun->isInterpreted() ? fun->inStrictMode() : fun->isBoundFunction()) {
JSObject *throwTypeError = fun->getThrowTypeError();
JSObject *throwTypeError = fun->global().getThrowTypeError();
getter = CastAsPropertyOp(throwTypeError);
setter = CastAsStrictPropertyOp(throwTypeError);

View File

@ -1349,8 +1349,6 @@ struct JSObject : js::gc::Cell
static bool thisObject(JSContext *cx, const js::Value &v, js::Value *vp);
inline JSObject *getThrowTypeError() const;
bool swap(JSContext *cx, JSObject *other);
inline void initArrayClass();