bigint-and-number.js |
---
esid: sec-multiplicative-operators-runtime-semantics-evaluation
description: Mixing BigInt and Number produces a TypeError for division 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.
--- |
2309 |
bigint-arithmetic.js |
---
esid: sec-multiplicative-operators-runtime-semantics-evaluation
description: BigInt division arithmetic
features: [BigInt]
--- |
29487 |
bigint-complex-infinity.js |
---
description: BigInt division of complex infinity (1/0)
esid: sec-multiplicative-operators-runtime-semantics-evaluation
info: |
Runtime Semantics: Evaluation
MultiplicativeExpression: MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
...
11. If MultiplicativeOperator is /, return T::divide(lnum, rnum).
...
BigInt::divide (x, y)
1. If y is 0n, throw a RangeError exception.
...
features: [BigInt]
--- |
978 |
bigint-errors.js |
---
description: division operator ToNumeric with BigInt operands
esid: sec-multiplicative-operators-runtime-semantics-evaluation
features: [BigInt, Symbol, Symbol.toPrimitive, computed-property-names]
--- |
1961 |
bigint-toprimitive.js |
---
description: division operator ToNumeric with BigInt operands
esid: sec-multiplicative-operators-runtime-semantics-evaluation
features: [BigInt, Symbol.toPrimitive, computed-property-names]
--- |
8802 |
bigint-wrapped-values.js |
---
description: division operator ToNumeric with BigInt operands
esid: sec-multiplicative-operators-runtime-semantics-evaluation
features: [BigInt, Symbol.toPrimitive, computed-property-names]
--- |
1418 |
browser.js |
|
0 |
line-terminator.js |
---
esid: sec-multiplicative-operators-runtime-semantics-evaluation
description: Line terminator between the operands of a division operator
info: |
MultiplicativeExpression[Yield, Await]:
ExponentiationExpression
MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
MultiplicativeOperator : one of
/ %
--- |
550 |
no-magic-asi-from-block-eval.js |
---
esid: sec-multiplicative-operators-runtime-semantics-evaluation
description: division after block statement (no ASI)
info: |
MultiplicativeExpression[Yield, Await]:
ExponentiationExpression
MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
MultiplicativeOperator : one of
/ %
--- |
577 |
no-magic-asi.js |
---
esid: sec-multiplicative-operators-runtime-semantics-evaluation
description: No ASI happening in identifier used as operands
info: |
MultiplicativeExpression[Yield, Await]:
ExponentiationExpression
MultiplicativeExpression MultiplicativeOperator ExponentiationExpression
MultiplicativeOperator : one of
/ %
--- |
595 |
order-of-evaluation.js |
---
esid: sec-multiplicative-operators-runtime-semantics-evaluation
description: Type coercion order of operations for division operator
features: [Symbol]
info: |
Evaluate lhs
Evaluate rhs
ToNumeric(lhs)
ToNumeric(rhs)
--- |
3038 |
S11.5.2_A1.js |
---
info: |
White Space and Line Terminator between MultiplicativeExpression and "/"
or between "/" and UnaryExpression are allowed
es5id: 11.5.2_A1
description: Checking by using eval
--- |
1640 |
S11.5.2_A2.1_T1.js |
---
info: Operator x / y uses GetValue
es5id: 11.5.2_A2.1_T1
description: Either Type is not Reference or GetBase is not null
--- |
1112 |
S11.5.2_A2.1_T2.js |
---
info: Operator x / y uses GetValue
es5id: 11.5.2_A2.1_T2
description: If GetBase(x) is null, throw ReferenceError
--- |
541 |
S11.5.2_A2.1_T3.js |
---
info: Operator x / y uses GetValue
es5id: 11.5.2_A2.1_T3
description: If GetBase(y) is null, throw ReferenceError
--- |
541 |
S11.5.2_A2.2_T1.js |
---
info: Operator x / y uses [[Default Value]]
es5id: 11.5.2_A2.2_T1
description: If Type(value) is Object, evaluate ToPrimitive(value, Number)
--- |
3214 |
S11.5.2_A2.3_T1.js |
---
info: |
ToNumber(first expression) is called first, and then ToNumber(second
expression)
es5id: 11.5.2_A2.3_T1
description: Checking with "throw"
--- |
987 |
S11.5.2_A2.4_T1.js |
---
info: First expression is evaluated first, and then second expression
es5id: 11.5.2_A2.4_T1
description: Checking with "="
--- |
566 |
S11.5.2_A2.4_T2.js |
---
info: First expression is evaluated first, and then second expression
es5id: 11.5.2_A2.4_T2
description: Checking with "throw"
--- |
881 |
S11.5.2_A2.4_T3.js |
---
info: First expression is evaluated first, and then second expression
es5id: 11.5.2_A2.4_T3
description: Checking with undeclarated variables
--- |
593 |
S11.5.2_A2.4_T4.js |
---
info: First expression is evaluated first, and then second expression
es5id: 11.5.2_A2.4_T4
description: Checking with undeclarated variables
flags: [noStrict]
--- |
442 |
S11.5.2_A3_T1.1.js |
---
info: Operator x / y returns ToNumber(x) / ToNumber(y)
es5id: 11.5.2_A3_T1.1
description: >
Type(x) and Type(y) vary between primitive boolean and Boolean
object
--- |
953 |
S11.5.2_A3_T1.2.js |
---
info: Operator x / y returns ToNumber(x) / ToNumber(y)
es5id: 11.5.2_A3_T1.2
description: Type(x) and Type(y) vary between primitive number and Number object
--- |
857 |
S11.5.2_A3_T1.3.js |
---
info: Operator x / y returns ToNumber(x) / ToNumber(y)
es5id: 11.5.2_A3_T1.3
description: Type(x) and Type(y) vary between primitive string and String object
--- |
1165 |
S11.5.2_A3_T1.4.js |
---
info: Operator x / y returns ToNumber(x) / ToNumber(y)
es5id: 11.5.2_A3_T1.4
description: Type(x) and Type(y) vary between Null and Undefined
--- |
913 |
S11.5.2_A3_T1.5.js |
---
info: Operator x / y returns ToNumber(x) / ToNumber(y)
es5id: 11.5.2_A3_T1.5
description: Type(x) and Type(y) vary between Object object and Function object
--- |
1036 |
S11.5.2_A3_T2.1.js |
---
info: Operator x / y returns ToNumber(x) / ToNumber(y)
es5id: 11.5.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.5.2_A3_T2.2.js |
---
info: Operator x / y returns ToNumber(x) / ToNumber(y)
es5id: 11.5.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.5.2_A3_T2.3.js |
---
info: Operator x / y returns ToNumber(x) / ToNumber(y)
es5id: 11.5.2_A3_T2.3
description: >
Type(x) is different from Type(y) and both types vary between
Number (primitive or object) and Null
--- |
925 |
S11.5.2_A3_T2.4.js |
---
info: Operator x / y returns ToNumber(x) / ToNumber(y)
es5id: 11.5.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.5.2_A3_T2.5.js |
---
info: Operator x / y returns ToNumber(x) / ToNumber(y)
es5id: 11.5.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.5.2_A3_T2.6.js |
---
info: Operator x / y returns ToNumber(x) / ToNumber(y)
es5id: 11.5.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.5.2_A3_T2.7.js |
---
info: Operator x / y returns ToNumber(x) / ToNumber(y)
es5id: 11.5.2_A3_T2.7
description: >
Type(x) is different from Type(y) and both types vary between
String (primitive or object) and Null
--- |
949 |
S11.5.2_A3_T2.8.js |
---
info: Operator x / y returns ToNumber(x) / ToNumber(y)
es5id: 11.5.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.5.2_A3_T2.9.js |
---
info: Operator x / y returns ToNumber(x) / ToNumber(y)
es5id: 11.5.2_A3_T2.9
description: >
Type(x) is different from Type(y) and both types vary between
Boolean (primitive or object) and Null
--- |
968 |
S11.5.2_A4_T1.1.js |
---
info: |
The result of division is determined by the specification of IEEE 754
arithmetics
es5id: 11.5.2_A4_T1.1
description: If left operand is NaN, the result is NaN
--- |
1588 |
S11.5.2_A4_T1.2.js |
---
info: |
The result of division is determined by the specification of IEEE 754
arithmetics
es5id: 11.5.2_A4_T1.2
description: If right operand is NaN, the result is NaN
--- |
1591 |
S11.5.2_A4_T2.js |
---
info: |
The result of division is determined by the specification of IEEE 754
arithmetics
es5id: 11.5.2_A4_T2
description: >
The sign of the result is positive if both operands have the same
sign, negative if the operands have different signs
--- |
830 |
S11.5.2_A4_T3.js |
---
info: |
The result of division is determined by the specification of IEEE 754
arithmetics
es5id: 11.5.2_A4_T3
description: >
Division of an infinity by a zero results in an infinity of
appropriate sign
--- |
1050 |
S11.5.2_A4_T4.js |
---
info: |
The result of division is determined by the specification of IEEE 754
arithmetics
es5id: 11.5.2_A4_T4
description: Division of an infinity by an infinity results in NaN
--- |
1128 |
S11.5.2_A4_T5.js |
---
info: |
The result of division is determined by the specification of IEEE 754
arithmetics
es5id: 11.5.2_A4_T5
description: >
Division of an infinity by a finite non-zero value results in a
signed infinity
--- |
1481 |
S11.5.2_A4_T6.js |
---
info: |
The result of division is determined by the specification of IEEE 754
arithmetics
es5id: 11.5.2_A4_T6
description: >
Division of a finite value by an infinity results in zero of
appropriate sign
--- |
1574 |
S11.5.2_A4_T7.js |
---
info: |
The result of division is determined by the specification of IEEE 754
arithmetics
es5id: 11.5.2_A4_T7
description: Division of a zero by a zero results in NaN
--- |
844 |
S11.5.2_A4_T8.js |
---
info: |
The result of division is determined by the specification of IEEE 754
arithmetics
es5id: 11.5.2_A4_T8
description: >
Division of a zero by any non-zero finite value -0 results in zero
of appropriate sign
--- |
1944 |
S11.5.2_A4_T9.js |
---
info: |
The result of division is determined by the specification of IEEE 754
arithmetics
es5id: 11.5.2_A4_T9
description: >
If the magnitude is too large to represent, the result is then an
infinity of appropriate sign
--- |
1382 |
S11.5.2_A4_T10.js |
---
info: |
The result of division is determined by the specification of IEEE 754
arithmetics
es5id: 11.5.2_A4_T10
description: >
If both operands are finite and nonzero, the quotient is computed
and rounded using IEEE 754 round-to-nearest mode. If the
magnitude is too small to represent, the result is then a zero of
appropriate sign
--- |
2173 |
shell.js |
|
0 |