Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,3 @@ TemporalHelpers.assertDuration(new Temporal.Duration(0, 1, 0, 30).round({
roundingIncrement: 2,
relativeTo: new Temporal.PlainDate(1970, 7, 31)
}), 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, `1m30d to 2m with relativeTo 1970-07-31`);
TemporalHelpers.assertDuration(new Temporal.Duration(0, 1, 0, 30).round({
smallestUnit: "months",
roundingIncrement: 2,
relativeTo: Temporal.ZonedDateTime.from('2025-03-09T03:00:00-07:00[America/Vancouver]')
}), 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, `1m30d to 2m with relativeTo 2025-03-09T03:00:00-07:00[America/Vancouver]`);
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
// Copyright (C) 2026 Igalia, S.L. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
esid: sec-temporal.duration.prototype.round
description: Test a specific buggy case from temporal_rs
includes: [temporalHelpers.js]
features: [Temporal]
---*/

const relativeTo = Temporal.ZonedDateTime.from('2025-03-09T03:00:00-07:00[America/Vancouver]');
TemporalHelpers.assertDuration(new Temporal.Duration(0, 1, 0, 30).round({
smallestUnit: "months",
roundingIncrement: 2,
relativeTo,
}), 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, `1m30d to 2m with relativeTo 2025-03-09T03:00:00-07:00[America/Vancouver]`);
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
description: |
pending
esid: pending
features: [Atomics, SharedArrayBuffer]
---*/

const otherGlobal = $262.createRealm().global;
Expand Down Expand Up @@ -111,4 +112,3 @@ for (let TA of intArrayConstructors) {
assert.sameValue(val, 3);
assert.sameValue(ta[0], 2);
}

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ includes: [detachArrayBuffer.js]
description: |
pending
esid: pending
features: [Atomics]
---*/

const intArrayConstructors = [
Expand Down Expand Up @@ -97,4 +98,3 @@ for (let TA of intArrayConstructors) {
assert.throws(TypeError, () => Atomics.xor(ta, badValue(ta), 0));
assert.throws(TypeError, () => Atomics.xor(ta, 0, badValue(ta)));
}

Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ includes: [sm/non262-TypedArray-shell.js]
description: |
pending
esid: pending
features: [Float16Array, Float32Array, Float64Array]
---*/
// Test with all floating point typed arrays.
const floatConstructors = anyTypedArrayConstructors.filter(isFloatConstructor);
Expand Down Expand Up @@ -136,4 +137,3 @@ for (const [TA, taLength] of prod(floatConstructors, typedArrayLengths)) {
assert.sameValue(fta[nanOffset + i], NaN, `At offset: ${nanOffset + i}`);
}
}

1 change: 1 addition & 0 deletions third_party/test262/test/staging/sm/TypedArray/toString.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ includes: [sm/non262-TypedArray-shell.js, propertyHelper.js]
description: |
pending
esid: pending
features: [Float16Array]
---*/
const TypedArrayPrototype = Object.getPrototypeOf(Int8Array.prototype);

Expand Down
2 changes: 1 addition & 1 deletion third_party/test262/vendored.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[test262]
source = "https://github.com/tc39/test262"
rev = "b66872a92487694396fb082343e08dd7cca5ddf4"
rev = "4a1e96230008fe27367233f7e4947ace176aac5a"