summaryrefslogtreecommitdiff
path: root/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js
diff options
context:
space:
mode:
authorAndré Bargull <andre.bargull@gmail.com>2018-02-09 09:09:47 -0800
committerLeo Balter <leonardo.balter@gmail.com>2018-02-09 12:09:47 -0500
commitf95b56ab28c5f18150f30fbfa889a4f6ba0e50a1 (patch)
treed403f704c1b6a1842f12df380651919beaaf5fef /test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js
parenta01de4a722d088055a7d84d8c691ddd7109edb34 (diff)
downloadqtdeclarative-testsuites-f95b56ab28c5f18150f30fbfa889a4f6ba0e50a1.tar.gz
Revert "js-beautify: make all indentation consistent (depth & character) (#1409)" (#1412)
This reverts commit a01de4a722d088055a7d84d8c691ddd7109edb34.
Diffstat (limited to 'test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js')
-rw-r--r--test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js30
1 files changed, 15 insertions, 15 deletions
diff --git a/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js b/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js
index f0cd9807d..2ee3a6c6b 100644
--- a/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js
+++ b/test/built-ins/BigInt/asIntN/bigint-tobigint-wrapped-values.js
@@ -10,53 +10,53 @@ info: |
features: [BigInt, Symbol.toPrimitive, computed-property-names]
---*/
-assert.sameValue(BigInt.asIntN(2, Object(0 n)), 0 n, "ToPrimitive: unbox object with internal slot");
+assert.sameValue(BigInt.asIntN(2, Object(0n)), 0n, "ToPrimitive: unbox object with internal slot");
assert.sameValue(BigInt.asIntN(2, {
[Symbol.toPrimitive]: function() {
- return 0 n;
+ return 0n;
}
-}), 0 n, "ToPrimitive: @@toPrimitive");
+}), 0n, "ToPrimitive: @@toPrimitive");
assert.sameValue(BigInt.asIntN(2, {
valueOf: function() {
- return 0 n;
+ return 0n;
}
-}), 0 n, "ToPrimitive: valueOf");
+}), 0n, "ToPrimitive: valueOf");
assert.sameValue(BigInt.asIntN(2, {
toString: function() {
- return 0 n;
+ return 0n;
}
-}), 0 n, "ToPrimitive: toString");
-assert.sameValue(BigInt.asIntN(2, Object(true)), 1 n,
+}), 0n, "ToPrimitive: toString");
+assert.sameValue(BigInt.asIntN(2, Object(true)), 1n,
"ToBigInt: unbox object with internal slot => true => 1n");
assert.sameValue(BigInt.asIntN(2, {
[Symbol.toPrimitive]: function() {
return true;
}
-}), 1 n, "ToBigInt: @@toPrimitive => true => 1n");
+}), 1n, "ToBigInt: @@toPrimitive => true => 1n");
assert.sameValue(BigInt.asIntN(2, {
valueOf: function() {
return true;
}
-}), 1 n, "ToBigInt: valueOf => true => 1n");
+}), 1n, "ToBigInt: valueOf => true => 1n");
assert.sameValue(BigInt.asIntN(2, {
toString: function() {
return true;
}
-}), 1 n, "ToBigInt: toString => true => 1n");
-assert.sameValue(BigInt.asIntN(2, Object("1")), 1 n,
+}), 1n, "ToBigInt: toString => true => 1n");
+assert.sameValue(BigInt.asIntN(2, Object("1")), 1n,
"ToBigInt: unbox object with internal slot => parse BigInt");
assert.sameValue(BigInt.asIntN(2, {
[Symbol.toPrimitive]: function() {
return "1";
}
-}), 1 n, "ToBigInt: @@toPrimitive => parse BigInt");
+}), 1n, "ToBigInt: @@toPrimitive => parse BigInt");
assert.sameValue(BigInt.asIntN(2, {
valueOf: function() {
return "1";
}
-}), 1 n, "ToBigInt: valueOf => parse BigInt");
+}), 1n, "ToBigInt: valueOf => parse BigInt");
assert.sameValue(BigInt.asIntN(2, {
toString: function() {
return "1";
}
-}), 1 n, "ToBigInt: toString => parse BigInt");
+}), 1n, "ToBigInt: toString => parse BigInt");