From 960340c1f5a1f45ceb40ad08a68eb75546c984d1 Mon Sep 17 00:00:00 2001 From: Mounir Lamouri Date: Wed, 25 May 2011 18:28:17 +0200 Subject: [PATCH] Backout bug 658351 due to build bustage and perma-orange. --- js/src/jsval.h | 8 -------- 1 file changed, 8 deletions(-) diff --git a/js/src/jsval.h b/js/src/jsval.h index 4f74f95ae839..f76f2970b7a5 100644 --- a/js/src/jsval.h +++ b/js/src/jsval.h @@ -461,10 +461,6 @@ JSVAL_TO_BOOLEAN_IMPL(jsval_layout l) static JS_ALWAYS_INLINE jsval_layout BOOLEAN_TO_JSVAL_IMPL(JSBool b) { - // This assertion exists to catch JSAPI users who accidentally create bogo-booleans thanks to - // the fact that JSBool is, in reality, an integer. These users must convert to JS_TRUE or - // JS_FALSE before packing the boolean into a jsval. - JS_ASSERT(b == JS_TRUE || b == JS_FALSE); jsval_layout l; l.s.tag = JSVAL_TAG_BOOLEAN; l.s.payload.boo = b; @@ -657,10 +653,6 @@ JSVAL_TO_BOOLEAN_IMPL(jsval_layout l) static JS_ALWAYS_INLINE jsval_layout BOOLEAN_TO_JSVAL_IMPL(JSBool b) { - // This assertion exists to catch JSAPI users who accidentally create bogo-booleans thanks to - // the fact that JSBool is, in reality, an integer. These users must convert to JS_TRUE or - // JS_FALSE before packing the boolean into a jsval. - JS_ASSERT(b == JS_TRUE || b == JS_FALSE); jsval_layout l; l.asBits = ((uint64)(uint32)b) | JSVAL_SHIFTED_TAG_BOOLEAN; return l;