mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backout bug 658351 due to build bustage and perma-orange.
This commit is contained in:
parent
2db7748838
commit
c75d2b3969
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user