Skip to content
Snippets Groups Projects
Unverified Commit cdbf8185 authored by Leo Balter's avatar Leo Balter Committed by GitHub
Browse files

Merge pull request #1491 from bocoup/bigint-fix

Bigint fix: the remaining bugs found in #1461
parents 2975694f cc866293
No related branches found
No related tags found
No related merge requests found
Showing
with 17 additions and 17 deletions
......@@ -22,7 +22,7 @@ includes: [testBigIntTypedArray.js]
features: [BigInt, Symbol.iterator, TypedArray]
---*/
var sourceItor = [1, 2];
var sourceItor = [1n, 2n];
var sourceObj = {
length: 2
};
......
......@@ -18,7 +18,7 @@ features: [BigInt, TypedArray]
---*/
var source = {
"0": 42,
"0": 42n,
length: 2
};
var mapfn = function() {
......
......@@ -29,7 +29,7 @@ features: [BigInt, cross-realm, Reflect, TypedArray]
var other = $262.createRealm().global;
var desc = {
value: 0,
value: 0n,
configurable: false,
enumerable: true,
writable: true
......
......@@ -27,7 +27,7 @@ features: [BigInt, Reflect, TypedArray]
---*/
var desc = {
value: 0,
value: 0n,
configurable: false,
enumerable: true,
writable: true
......
......@@ -25,7 +25,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
assert.sameValue(
Reflect.defineProperty(sample, "2", {
value: 42,
value: 42n,
configurable: false,
enumerable: true,
writable: true
......@@ -36,7 +36,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
assert.sameValue(
Reflect.defineProperty(sample, "3", {
value: 42,
value: 42n,
configurable: false,
enumerable: true,
writable: true
......
......@@ -23,7 +23,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
assert.sameValue(
Reflect.defineProperty(sample, "-1", {
value: 42,
value: 42n,
configurable: false,
enumerable: true,
writable: true
......
......@@ -23,7 +23,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
assert.sameValue(
Reflect.defineProperty(sample, "-0", {
value: 42,
value: 42n,
configurable: false,
enumerable: true,
writable: true
......
......@@ -21,7 +21,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
assert.sameValue(
Reflect.defineProperty(sample, "0.1", {
value: 42,
value: 42n,
configurable: false,
enumerable: true,
writable: true
......@@ -38,7 +38,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
assert.sameValue(
Reflect.defineProperty(sample, "0.000001", {
value: 42,
value: 42n,
configurable: false,
enumerable: true,
writable: true
......@@ -58,7 +58,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
assert.sameValue(
Reflect.defineProperty(sample, "1.1", {
value: 42,
value: 42n,
configurable: false,
enumerable: true,
writable: true
......@@ -75,7 +75,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
assert.sameValue(
Reflect.defineProperty(sample, "Infinity", {
value: 42,
value: 42n,
configurable: false,
enumerable: true,
writable: true
......@@ -99,7 +99,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
assert.sameValue(
Reflect.defineProperty(sample, "-Infinity", {
value: 42,
value: 42n,
configurable: false,
enumerable: true,
writable: true
......
......@@ -23,7 +23,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
assert.sameValue(
Reflect.defineProperty(sample, "0", {
value: 42,
value: 42n,
configurable: true,
enumerable: true,
writable: true
......
......@@ -23,7 +23,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
assert.sameValue(
Reflect.defineProperty(sample, "0", {
value: 42,
value: 42n,
configurable: false,
enumerable: false,
writable: true
......
......@@ -23,7 +23,7 @@ testWithBigIntTypedArrayConstructors(function(TA) {
assert.sameValue(
Reflect.defineProperty(sample, "0", {
value: 42,
value: 42n,
configurable: false,
enumerable: true,
writable: false
......
......@@ -35,6 +35,6 @@ testWithBigIntTypedArrayConstructors(function(TA) {
$DETACHBUFFER(sample.buffer);
assert.throws(TypeError, function() {
sample[0] = 0;
sample[0] = 0n;
});
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment