bigint-and-number.js |
---
esid: sec-subtraction-operator-minus-runtime-semantics-evaluation
description: Mixing BigInt and Number produces a TypeError for subtraction operator
features: [BigInt]
info: |
Let lnum be ? ToNumeric(leftValue).
Let rnum be ? ToNumeric(rightValue).
If Type(lnum) does not equal Type(rnum), throw a TypeError exception.
--- |
2314 |
bigint-arithmetic.js |
---
esid: sec-subtraction-operator-minus-runtime-semantics-evaluation
description: BigInt subtraction arithmetic
features: [BigInt]
--- |
36037 |
bigint-errors.js |
---
description: subtraction operator ToNumeric with BigInt operands
esid: sec-subtraction-operator-minus-runtime-semantics-evaluation
features: [BigInt, Symbol, Symbol.toPrimitive, computed-property-names]
--- |
1966 |
bigint-toprimitive.js |
---
description: subtraction operator ToNumeric with BigInt operands
esid: sec-subtraction-operator-minus-runtime-semantics-evaluation
features: [BigInt, Symbol.toPrimitive, computed-property-names]
--- |
8807 |
bigint-wrapped-values.js |
---
description: subtraction operator ToNumeric with BigInt operands
esid: sec-subtraction-operator-minus-runtime-semantics-evaluation
features: [BigInt, Symbol.toPrimitive, computed-property-names]
--- |
1423 |
browser.js |
|
0 |
order-of-evaluation.js |
---
esid: sec-subtraction-operator-minus-runtime-semantics-evaluation
description: Type coercion order of operations for subtraction operator
features: [Symbol]
info: |
Evaluate lhs
Evaluate rhs
ToNumeric(lhs)
ToNumeric(rhs)
--- |
3043 |
S11.6.2_A1.js |
---
info: |
White Space and Line Terminator between AdditiveExpression and "-" or
between "-" and MultiplicativeExpression are allowed
es5id: 11.6.2_A1
description: Checking by using eval
--- |
1643 |
S11.6.2_A2.1_T1.js |
---
info: Operator x - y uses GetValue
es5id: 11.6.2_A2.1_T1
description: Either Type is not Reference or GetBase is not null
--- |
1112 |
S11.6.2_A2.1_T2.js |
---
info: Operator x - y uses GetValue
es5id: 11.6.2_A2.1_T2
description: If GetBase(x) is null, throw ReferenceError
--- |
541 |
S11.6.2_A2.1_T3.js |
---
info: Operator x - y uses GetValue
es5id: 11.6.2_A2.1_T3
description: If GetBase(y) is null, throw ReferenceError
--- |
541 |
S11.6.2_A2.2_T1.js |
---
info: Operator x - y uses [[Default Value]]
es5id: 11.6.2_A2.2_T1
description: If Type(value) is Object, evaluate ToPrimitive(value, Number)
--- |
3214 |
S11.6.2_A2.3_T1.js |
---
info: |
ToNumber(first expression) is called first, and then ToNumber(second
expression)
es5id: 11.6.2_A2.3_T1
description: Checking with "throw"
--- |
987 |
S11.6.2_A2.4_T1.js |
---
info: First expression is evaluated first, and then second expression
es5id: 11.6.2_A2.4_T1
description: Checking with "="
--- |
568 |
S11.6.2_A2.4_T2.js |
---
info: First expression is evaluated first, and then second expression
es5id: 11.6.2_A2.4_T2
description: Checking with "throw"
--- |
881 |
S11.6.2_A2.4_T3.js |
---
info: First expression is evaluated first, and then second expression
es5id: 11.6.2_A2.4_T3
description: Checking with undeclarated variables
--- |
593 |
S11.6.2_A2.4_T4.js |
---
info: First expression is evaluated first, and then second expression
es5id: 11.6.2_A2.4_T4
description: Checking with undeclarated variables
flags: [noStrict]
--- |
442 |
S11.6.2_A3_T1.1.js |
---
info: Operator x - y returns ToNumber(x) - ToNumber(y)
es5id: 11.6.2_A3_T1.1
description: >
Type(x) and Type(y) vary between primitive boolean and Boolean
object
--- |
953 |
S11.6.2_A3_T1.2.js |
---
info: Operator x - y returns ToNumber(x) - ToNumber(y)
es5id: 11.6.2_A3_T1.2
description: Type(x) and Type(y) vary between primitive number and Number object
--- |
857 |
S11.6.2_A3_T1.3.js |
---
info: Operator x - y returns ToNumber(x) - ToNumber(y)
es5id: 11.6.2_A3_T1.3
description: Type(x) and Type(y) vary between primitive string and String object
--- |
1165 |
S11.6.2_A3_T1.4.js |
---
info: Operator x - y returns ToNumber(x) - ToNumber(y)
es5id: 11.6.2_A3_T1.4
description: Type(x) and Type(y) vary between Null and Undefined
--- |
892 |
S11.6.2_A3_T1.5.js |
---
info: Operator x - y returns ToNumber(x) - ToNumber(y)
es5id: 11.6.2_A3_T1.5
description: Type(x) and Type(y) vary between Object object and Function object
--- |
1036 |
S11.6.2_A3_T2.1.js |
---
info: Operator x - y returns ToNumber(x) - ToNumber(y)
es5id: 11.6.2_A3_T2.1
description: >
Type(x) is different from Type(y) and both types vary between
Number (primitive or object) and Boolean (primitive and object)
--- |
1541 |
S11.6.2_A3_T2.2.js |
---
info: Operator x - y returns ToNumber(x) - ToNumber(y)
es5id: 11.6.2_A3_T2.2
description: >
Type(x) is different from Type(y) and both types vary between
Number (primitive or object) and String (primitive and object)
--- |
1754 |
S11.6.2_A3_T2.3.js |
---
info: Operator x - y returns ToNumber(x) - ToNumber(y)
es5id: 11.6.2_A3_T2.3
description: >
Type(x) is different from Type(y) and both types vary between
Number (primitive or object) and Null
--- |
867 |
S11.6.2_A3_T2.4.js |
---
info: Operator x - y returns ToNumber(x) - ToNumber(y)
es5id: 11.6.2_A3_T2.4
description: >
Type(x) is different from Type(y) and both types vary between
Number (primitive or object) and Undefined
--- |
1012 |
S11.6.2_A3_T2.5.js |
---
info: Operator x - y returns ToNumber(x) - ToNumber(y)
es5id: 11.6.2_A3_T2.5
description: >
Type(x) is different from Type(y) and both types vary between
String (primitive or object) and Boolean (primitive and object)
--- |
1589 |
S11.6.2_A3_T2.6.js |
---
info: Operator x - y returns ToNumber(x) - ToNumber(y)
es5id: 11.6.2_A3_T2.6
description: >
Type(x) is different from Type(y) and both types vary between
String (primitive or object) and Undefined
--- |
1036 |
S11.6.2_A3_T2.7.js |
---
info: Operator x - y returns ToNumber(x) - ToNumber(y)
es5id: 11.6.2_A3_T2.7
description: >
Type(x) is different from Type(y) and both types vary between
String (primitive or object) and Null
--- |
891 |
S11.6.2_A3_T2.8.js |
---
info: Operator x - y returns ToNumber(x) - ToNumber(y)
es5id: 11.6.2_A3_T2.8
description: >
Type(x) is different from Type(y) and both types vary between
Boolean (primitive or object) and Undefined
--- |
1055 |
S11.6.2_A3_T2.9.js |
---
info: Operator x - y returns ToNumber(x) - ToNumber(y)
es5id: 11.6.2_A3_T2.9
description: >
Type(x) is different from Type(y) and both types vary between
Boolean (primitive or object) and Null
--- |
910 |
S11.6.2_A4_T1.js |
---
info: Operator x - y produces the same result as x + (-y)
es5id: 11.6.2_A4_T1
description: If either operand is NaN, the result is NaN
--- |
1242 |
S11.6.2_A4_T2.js |
---
info: Operator x - y produces the same result as x + (-y)
es5id: 11.6.2_A4_T2
description: >
The difference of two infinities of opposite sign is the infinity
of minuend sign
--- |
759 |
S11.6.2_A4_T3.js |
---
info: Operator x - y produces the same result as x + (-y)
es5id: 11.6.2_A4_T3
description: The difference of two infinities of the same sign is NaN
--- |
705 |
S11.6.2_A4_T4.js |
---
info: Operator x - y produces the same result as x + (-y)
es5id: 11.6.2_A4_T4
description: >
The difference of an infinity and a finite value is equal to
infinity of appropriate sign
--- |
1882 |
S11.6.2_A4_T5.js |
---
info: Operator x - y produces the same result as x + (-y)
es5id: 11.6.2_A4_T5
description: >
Using the rule of sum of two zeroes and the fact that a - b = a +
(-b)
--- |
1272 |
S11.6.2_A4_T6.js |
---
info: Operator x - y produces the same result as x + (-y)
es5id: 11.6.2_A4_T6
description: >
Using the rule of sum of a zero and a nonzero finite value and the
fact that a - b = a + (-b)
--- |
1485 |
S11.6.2_A4_T7.js |
---
info: Operator x - y produces the same result as x + (-y)
es5id: 11.6.2_A4_T7
description: >
The mathematical difference of two nonzero finite values of the
same magnitude and same sign is +0
--- |
1551 |
S11.6.2_A4_T8.js |
---
info: Operator x - y produces the same result as x + (-y)
es5id: 11.6.2_A4_T8
description: >
If the magnitude is too large to represent, the operation
overflows and the result is then an infinity of appropriate sign
--- |
1232 |
shell.js |
|
0 |