|
@@ -118,7 +118,7 @@ namespace Jint.Runtime.Interpreter.Expressions
|
|
break;
|
|
break;
|
|
case BinaryOperator.BitwiseAnd:
|
|
case BinaryOperator.BitwiseAnd:
|
|
case BinaryOperator.BitwiseOr:
|
|
case BinaryOperator.BitwiseOr:
|
|
- case BinaryOperator.BitwiseXOr:
|
|
|
|
|
|
+ case BinaryOperator.BitwiseXor:
|
|
case BinaryOperator.LeftShift:
|
|
case BinaryOperator.LeftShift:
|
|
case BinaryOperator.RightShift:
|
|
case BinaryOperator.RightShift:
|
|
case BinaryOperator.UnsignedRightShift:
|
|
case BinaryOperator.UnsignedRightShift:
|
|
@@ -715,7 +715,7 @@ namespace Jint.Runtime.Interpreter.Expressions
|
|
{
|
|
{
|
|
BinaryOperator.BitwiseAnd => "op_BitwiseAnd",
|
|
BinaryOperator.BitwiseAnd => "op_BitwiseAnd",
|
|
BinaryOperator.BitwiseOr => "op_BitwiseOr",
|
|
BinaryOperator.BitwiseOr => "op_BitwiseOr",
|
|
- BinaryOperator.BitwiseXOr => "op_ExclusiveOr",
|
|
|
|
|
|
+ BinaryOperator.BitwiseXor => "op_ExclusiveOr",
|
|
BinaryOperator.LeftShift => "op_LeftShift",
|
|
BinaryOperator.LeftShift => "op_LeftShift",
|
|
BinaryOperator.RightShift => "op_RightShift",
|
|
BinaryOperator.RightShift => "op_RightShift",
|
|
BinaryOperator.UnsignedRightShift => "op_UnsignedRightShift",
|
|
BinaryOperator.UnsignedRightShift => "op_UnsignedRightShift",
|
|
@@ -764,7 +764,7 @@ namespace Jint.Runtime.Interpreter.Expressions
|
|
case BinaryOperator.BitwiseOr:
|
|
case BinaryOperator.BitwiseOr:
|
|
result = JsNumber.Create(leftValue | rightValue);
|
|
result = JsNumber.Create(leftValue | rightValue);
|
|
break;
|
|
break;
|
|
- case BinaryOperator.BitwiseXOr:
|
|
|
|
|
|
+ case BinaryOperator.BitwiseXor:
|
|
result = JsNumber.Create(leftValue ^ rightValue);
|
|
result = JsNumber.Create(leftValue ^ rightValue);
|
|
break;
|
|
break;
|
|
case BinaryOperator.LeftShift:
|
|
case BinaryOperator.LeftShift:
|
|
@@ -810,7 +810,7 @@ namespace Jint.Runtime.Interpreter.Expressions
|
|
return JsBigInt.Create(TypeConverter.ToBigInt(left) | TypeConverter.ToBigInt(right));
|
|
return JsBigInt.Create(TypeConverter.ToBigInt(left) | TypeConverter.ToBigInt(right));
|
|
}
|
|
}
|
|
|
|
|
|
- case BinaryOperator.BitwiseXOr:
|
|
|
|
|
|
+ case BinaryOperator.BitwiseXor:
|
|
{
|
|
{
|
|
if (!left.IsBigInt())
|
|
if (!left.IsBigInt())
|
|
{
|
|
{
|