Bug 619970 - Use the correct magic-value code in GetElement (r=waldo)

This commit is contained in:
Luke Wagner
2011-01-03 09:06:26 -08:00
parent 300a17c729
commit 427abb4aad
3 changed files with 10 additions and 1 deletions

View File

@@ -363,7 +363,7 @@ GetElement(JSContext *cx, JSObject *obj, jsdouble index, JSBool *hole, Value *vp
}
if (obj->isArguments() &&
index < obj->getArgsInitialLength() &&
!(*vp = obj->getArgsElement(uint32(index))).isMagic(JS_ARRAY_HOLE)) {
!(*vp = obj->getArgsElement(uint32(index))).isMagic(JS_ARGS_HOLE)) {
*hole = JS_FALSE;
JSStackFrame *fp = (JSStackFrame *)obj->getPrivate();
if (fp != JS_ARGUMENTS_OBJECT_ON_TRACE) {