Loading js/src/jit-test/tests/self-hosting/bug957004.js 0 → 100644 +3 −0 Original line number Diff line number Diff line // No result, just mustn't crash. Array.prototype.push(0); Array.prototype.indexOf(); js/src/vm/SelfHosting.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -482,7 +482,7 @@ js::intrinsic_IsPackedArray(JSContext *cx, unsigned argc, Value *vp) JS_ASSERT(args[0].isObject()); JSObject *obj = &args[0].toObject(); bool isPacked = obj->is<ArrayObject>() && bool isPacked = obj->is<ArrayObject>() && !obj->hasLazyType() && !obj->type()->hasAllFlags(types::OBJECT_FLAG_NON_PACKED) && obj->getDenseInitializedLength() == obj->as<ArrayObject>().length(); Loading Loading
js/src/jit-test/tests/self-hosting/bug957004.js 0 → 100644 +3 −0 Original line number Diff line number Diff line // No result, just mustn't crash. Array.prototype.push(0); Array.prototype.indexOf();
js/src/vm/SelfHosting.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -482,7 +482,7 @@ js::intrinsic_IsPackedArray(JSContext *cx, unsigned argc, Value *vp) JS_ASSERT(args[0].isObject()); JSObject *obj = &args[0].toObject(); bool isPacked = obj->is<ArrayObject>() && bool isPacked = obj->is<ArrayObject>() && !obj->hasLazyType() && !obj->type()->hasAllFlags(types::OBJECT_FLAG_NON_PACKED) && obj->getDenseInitializedLength() == obj->as<ArrayObject>().length(); Loading