From fdf2fa7cc06b6413c8a7d1519050dd28789b56af Mon Sep 17 00:00:00 2001 From: Brian Hackett Date: Tue, 25 Aug 2015 09:02:49 -0600 Subject: [PATCH] Bug 1193213 - Remove unnecessary NativeObject casts, r=jorendorff. --- js/src/frontend/BytecodeEmitter.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/src/frontend/BytecodeEmitter.cpp b/js/src/frontend/BytecodeEmitter.cpp index a3cd8229ef65..dc24f2fae443 100644 --- a/js/src/frontend/BytecodeEmitter.cpp +++ b/js/src/frontend/BytecodeEmitter.cpp @@ -4783,7 +4783,7 @@ BytecodeEmitter::emitCallSiteObject(ParseNode* pn) MOZ_ASSERT(value.isObject()); - ObjectBox* objbox1 = parser->newObjectBox(&value.toObject().as()); + ObjectBox* objbox1 = parser->newObjectBox(&value.toObject()); if (!objbox1) return false; @@ -4792,7 +4792,7 @@ BytecodeEmitter::emitCallSiteObject(ParseNode* pn) MOZ_ASSERT(value.isObject()); - ObjectBox* objbox2 = parser->newObjectBox(&value.toObject().as()); + ObjectBox* objbox2 = parser->newObjectBox(&value.toObject()); if (!objbox2) return false;