11.4.7-4-1.js |
---
es5id: 11.4.7-4-1
description: -"" should be zero
--- |
255 |
bigint-non-primitive.js |
---
description: Unary minus for BigInt object wrappers
esid: sec-unary-minus-operator-runtime-semantics-evaluation
info: |
Runtime Semantics: Evaluation
UnaryExpression : - UnaryExpression
1. Let expr be the result of evaluating UnaryExpression.
2. Let oldValue be ? ToNumeric(? GetValue(expr)).
3. Let T be Type(oldValue).
4. Return ? T::unaryMinus(oldValue).
features: [BigInt, Symbol.toPrimitive]
--- |
1812 |
bigint.js |
---
description: Unary minus for BigInt values
esid: sec-numeric-types-bigint-unaryMinus
info: |
BigInt::unaryMinus (x)
The abstract operation BigInt::unaryMinus with an argument x of BigInt type returns the result of negating x.
Note: There is only one 0n value; -0n is the same as 0n.
features: [BigInt]
--- |
1260 |
browser.js |
|
0 |
S11.4.7_A1.js |
---
info: |
White Space and Line Terminator between "-" and UnaryExpression are
allowed
es5id: 11.4.7_A1
description: Checking by using eval
--- |
1361 |
S11.4.7_A2.1_T1.js |
---
info: Operator -x uses GetValue
es5id: 11.4.7_A2.1_T1
description: Either Type(x) is not Reference or GetBase(x) is not null
--- |
924 |
S11.4.7_A2.1_T2.js |
---
info: Operator -x uses GetValue
es5id: 11.4.7_A2.1_T2
description: If GetBase(x) is null, throw ReferenceError
--- |
526 |
S11.4.7_A2.2_T1.js |
---
info: Operator -x uses [[Default Value]]
es5id: 11.4.7_A2.2_T1
description: If Type(value) is Object, evaluate ToPrimitive(value, Number)
--- |
3151 |
S11.4.7_A3_T1.js |
---
info: Operator -x returns -ToNumber(x)
es5id: 11.4.7_A3_T1
description: Type(x) is boolean primitive or Boolean object
--- |
524 |
S11.4.7_A3_T2.js |
---
info: Operator -x returns -ToNumber(x)
es5id: 11.4.7_A3_T2
description: Type(x) is number primitive or Number object
--- |
507 |
S11.4.7_A3_T3.js |
---
info: Operator -x returns -ToNumber(x)
es5id: 11.4.7_A3_T3
description: Type(x) is string primitive or String object
--- |
628 |
S11.4.7_A3_T4.js |
---
info: Operator -x returns -ToNumber(x)
es5id: 11.4.7_A3_T4
description: Type(x) is undefined or null
--- |
489 |
S11.4.7_A3_T5.js |
---
info: Operator -x returns -ToNumber(x)
es5id: 11.4.7_A3_T5
description: Type(x) is Object object or Function object
--- |
563 |
S11.4.7_A4.1.js |
---
info: If x is NaN, operator -x returns NaN
es5id: 11.4.7_A4.1
description: Checking NaN
--- |
505 |
S11.4.7_A4.2.js |
---
info: Negating +0 produces -0, negating -0 produces +0
es5id: 11.4.7_A4.2
description: Checking Infinity
--- |
794 |
shell.js |
|
0 |