7116 Commits

Author SHA1 Message Date
André Bargull
ad6b866f42 Replace assertThrowsInstanceOf with assert.throws in sm/Reflect 2025-09-17 12:46:39 -07:00
André Bargull
2fe9977b83 Replace assertThrowsInstanceOf with assert.throws in sm/Set 2025-09-17 12:46:39 -07:00
André Bargull
40b3946818 Replace assertThrowsInstanceOf with assert.throws in sm/statements 2025-09-17 12:46:39 -07:00
André Bargull
4e71fccb73 Replace assertThrowsInstanceOf with assert.throws in sm/syntax 2025-09-17 12:46:39 -07:00
André Bargull
11e1fbda5d Replace assertThrowsInstanceOf with assert.throws in sm/Temporal 2025-09-17 12:46:39 -07:00
André Bargull
89fa802464 Replace assertThrowsInstanceOf with assert.throws in sm/RegExp 2025-09-17 12:46:39 -07:00
André Bargull
c0f91faf96 Replace assertThrowsInstanceOf with assert.throws in sm/String 2025-09-17 12:46:38 -07:00
André Bargull
60c271e441 Replace assertThrowsInstanceOf with assert.throws in sm/Symbol 2025-09-17 12:46:38 -07:00
André Bargull
68acce80ed Replace assertThrowsInstanceOf with assert.throws in sm/TypedArray 2025-09-17 12:46:38 -07:00
André Bargull
23d9d1ad9d Replace assertThrowsInstanceOf with assert.throws in sm/class 2025-09-17 12:46:38 -07:00
André Bargull
d7a11ffe21 Replace assertThrowsInstanceOf with assert.throws in sm/Array 2025-09-17 12:46:38 -07:00
André Bargull
e5edd5e620 Remove assertThrownErrorContains 2025-09-17 12:46:38 -07:00
André Bargull
22bd116f5e Remove assertThrowsInstanceOfWithMessage 2025-09-17 12:46:34 -07:00
André Bargull
5f5d06f861 Remove assertThrowsInstanceOfWithMessageCheck from tests 2025-09-17 12:44:24 -07:00
André Bargull
b5f946440f Remove assertThrowsInstanceOfWithMessageContains 2025-09-17 12:44:24 -07:00
André Bargull
8e9f51e944 Use standard harness functions in expressions/optional-chain.js 2025-09-17 12:44:23 -07:00
André Bargull
ae5a0f3626 Replace makeIterator with inline definitions 2025-09-17 12:44:23 -07:00
André Bargull
e11da732b2 Move Permutations into the two files using it and also simplify the tests a bit 2025-09-17 12:44:18 -07:00
André Bargull
267e87f7df Use test262 harness functions in non262-Date-shell.js 2025-09-17 12:36:53 -07:00
André Bargull
fd6bc0db37 Remove unused includes to non262-Date-shell.js 2025-09-17 12:36:53 -07:00
André Bargull
900e13c05f Remove unused definitions from non262-Date-shell.js 2025-09-17 12:36:53 -07:00
André Bargull
1fd48d6a92 Remove unused includes to non262-generators-shell.js 2025-09-17 12:36:53 -07:00
André Bargull
bfee2b57e5 Use sameValue in non262-generators-shell 2025-09-17 12:36:53 -07:00
Philip Chimento
af3d908437 Temporal: Add tests covering one operand of ZonedDateTime difference at extreme
These tests cover the case where the ZonedDateTime since() or until()
methods are called with either the receiver or the argument being a
ZonedDateTime instance at either the earliest or latest end of the
supported range.
2025-09-16 10:42:10 +02:00
Philip Chimento
60faf4f2bb Temporal: Add tests covering end-of-month behaviour for ISO-like non-ISO calendars
Same tests as added in #4004, but for the four non-ISO calendars which
use ISO-like months and days.
2025-09-16 10:42:10 +02:00
Philip Chimento
35b3fc74ab Revert "fix another test now that we don't access the IteratorResult value"
This reverts commit 71794b138844536a36b341700f88ee91c5754431.

Follow up from #4523, missed reverting this commit.

Closes: #4581
2025-09-16 10:17:18 +02:00
Jonas Haukenes
55e8077819 Added missing feature; symbols-as-weakmap-keys 2025-09-15 11:03:07 -07:00
Trevor Florence
0b02980322
Add additional tests for copy by array features (#4576)
Addresses testing gaps identified in #4575
2025-09-15 10:55:13 -07:00
Jonas Haukenes
daa4186be4 Removed typeof from log message. 2025-09-15 14:55:44 +02:00
Jonas Haukenes
557b748bff Modifed the test to verify that callbackfn is not called if the key cannot be held weakly. 2025-09-15 14:55:44 +02:00
Trevor Florence
a5e69a1534 Remove unnecessary call to compareArray in this-value-boolean.js
This assertion throws before `compareArray` is called. In addition, `compareArray` takes two parameters, not one.

It's unclear to me why it was added in the first place.
2025-09-10 08:50:24 -07:00
Richard Gibson
3fd4ec27f1
[immutable-arraybuffer] Changes to existing ArrayBuffer.prototype properties (#4540) 2025-08-27 19:23:40 -04:00
Ms2ger
a07e038f37
CI: run harness tests (#4565) 2025-08-27 15:41:26 +00:00
Ms2ger
6f74a55277 Fix c/p errors in String#{is,to}WellFormed tests 2025-08-27 12:15:53 +02:00
Richard Gibson
c185485452 [immutable-arraybuffer] DataView.prototype.set$Type 2025-08-25 15:24:20 -07:00
Philip Chimento
04eaeb9908 Temporal: Coverage for blank durations
Many methods did not test what happened when an input or return value
was a blank (all fields 0) duration. This adds coverage for those code
paths.
2025-08-25 11:56:33 +02:00
Michael Ficarra
b947715fdd update Iterator Sequencing tests to reflect May 2025 plenary updates 2025-08-22 16:06:55 +02:00
Philip Chimento
5048ca6383 Temporal: Add tests for observable order of options get and cast
These tests cover the normative change approved in the July 2025 TC39
plenary. See https://github.com/tc39/proposal-temporal/pull/3130.
All properties of user-passed options objects should be read and cast
before any "algorithmic validation" is done.

This is a lot of tests, that cover every entry point where an options
object is passed in, where subsequently an exception can be thrown or user
code can be called.

However, the normative change only affects 10 of these tests:

- Instant.p.since,until,toString
- PlainDate.p.since,until
- PlainTime.p.since,until
- PlainYearMonth.p.since,until
- ZonedDateTime.p.toString

The other 35 tests simply close a gap in coverage.
2025-08-21 12:01:52 -07:00
Philip Chimento
a9ac87d317 Temporal: Fix canonicalizeCalendarEra to deal with era-less calendars
Previously the table of calendar eras incorrectly included eras for
calendars that didn't have them. The function that consumed the data
needed to be rewritten to handle the new situation of calendars not
appearing in the table.
2025-08-21 11:37:06 +02:00
Philip Chimento
4fbe8a72f2 Temporal: Add more calendars and eras to non-positive-era-year.js 2025-08-21 11:37:06 +02:00
Philip Chimento
eeb14d0ce7 Temporal: Fix reliance on "-inverse" era name
Inverse eras are no longer named with the "-inverse" suffix. Rewrite the
code that relied on that.
2025-08-21 11:37:06 +02:00
Philip Chimento
51cfd7fbd5 Temporal: Fix old era name
Primary eras are no longer named after calendar IDs.
2025-08-21 11:37:06 +02:00
Philip Chimento
957edc6612 Temporal: Remove islamic-rgsa calendar test
Replace it with a similar test to islamic-calendar-islamic.js, which
tests that the calendar is not supported in Temporal APIs.
2025-08-21 11:37:06 +02:00
Philip Chimento
253f537577 Temporal: Fix ReferenceError in test
Accidentally deleted too much :)
2025-08-21 11:37:06 +02:00
Philip Chimento
1588705cc5 Temporal: Add coverage for BubbleRelativeDuration called with time unit
See: tc39/proposal-temporal#3121

A type assertion in the spec was incorrect, but the assertion wasn't hit
in the Firefox implementation in any test262 test. These three tests add
coverage for all the paths that would have hit that assertion.
2025-08-20 18:02:05 +02:00
Daniel Minor
d0cb9f80f7 Add symbols-as-weakmap-keys to features 2025-08-19 17:21:01 +02:00
Manish Goregaokar
baa48a416c
Fix up calendar tests that rely on eras (#4558)
* Fix up calendar tests that rely on eras

* remove islamic
2025-08-18 17:55:59 -07:00
Shu-yu Guo
f4864f76b2 [top-level-await] Sync implementation with spec text
The module evaluation machinery has undergone non-trivial refactoring
since implementation. Sync up the comments and code for maintenance.

Notably,

- Actually use the kEvaluatingAsync status (previously conflated under
  kEvaluated)
- [[IsAsyncEvaluating]] -> [[IsAsyncEvaluation]]
- GatherAsyncParentCompletions -> GatherAvailableAncestors
- async -> has_toplevel_await
- kAsyncModule -> kModuleWithTopLevelAwait

Bug: 347060515
Change-Id: Ia2c35d5b42ee9f58db841cdfcaef9d17b018c9c6
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/5636701
Reviewed-by: Adam Klein <adamk@chromium.org>
Commit-Queue: Shu-yu Guo <syg@chromium.org>
Cr-Commit-Position: refs/heads/main@{#94591}
2025-08-12 18:22:34 +02:00
Richard Gibson
7a2273abd2
Fix typos (#4552)
Ref #4550
2025-07-31 12:07:48 -04:00
Richard Gibson
e33d93fecc Try to avoid "Argument list too long" when many files are changed 2025-07-29 11:07:29 +02:00