Closed Bug 1651668 Opened 4 years ago Closed 4 years ago

Support shell options natively in test262-update.py

Categories

(Core :: JavaScript Engine, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla80
Tracking Status
firefox80 --- fixed

People

(Reporter: mgaudet, Assigned: anba)

Details

Attachments

(5 files)

When developing a new language feature, it's nice to guard it by a shell option at the beginning.

test262-update.py supports injecting feature detection code, but sometimes writing said feature detection code is not particularly pleasant, and it would be nicer to just have shell-option(x) instead.

Unknowns:

  • Can we support multiple shell options? (ie, does something like shell-option(--enable-foo;--enable-bar) work?
  • Our test262 test run in the shell and the browser; but shell options are obviously only for the shell: So a feature should then imply skip-if browser?

Remove "AggregateError" from the list of conditionally available features and
then reimport test262.

Assignee: nobody → andrebargull
Status: NEW → ASSIGNED

Also change the update script to no longer generate an external reftest entry
when shell-options are needed, now that shell-options can be defined in an
inline reftest entry.

Depends on D83821

Also move the proxy private-fields exclusions into standard block of skipped
tests due to SpiderMonkey issues.

Depends on D83833

(In reply to Matthew Gaudet (he/him) [:mgaudet] from comment #0)

Unknowns:

  • Can we support multiple shell options? (ie, does something like shell-option(--enable-foo;--enable-bar) work?

shell-option(--enable-foo) shell-option(--enable-bar) already works.

  • Our test262 test run in the shell and the browser; but shell options are obviously only for the shell: So a feature should then imply skip-if browser?

Yes, we should skip tests in the browser when the feature is only available through shell-options.

Pushed by ncsoregi@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/469781e39781
Part 1: AggregateError is no longer only conditionally present. r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/9ed77e348f11
Part 2: Automatically generate shell-options flags for private-field features. r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/f4d576e2778a
Part 3: Remove no longer needed explicit reftest entry for private-fields. r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/2d0189a24a33
Part 4: Update test262 July 2020. r=mgaudet
https://hg.mozilla.org/integration/autoland/rev/72aacf8736aa
Part 5: Update test262 exclusion list. r=mgaudet
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: