Skip to content

[pull] main from tc39:main#2

Open
pull[bot] wants to merge 314 commits intoGraysonbarton:mainfrom
tc39:main
Open

[pull] main from tc39:main#2
pull[bot] wants to merge 314 commits intoGraysonbarton:mainfrom
tc39:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Oct 16, 2024

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

@sourcery-ai
Copy link
Copy Markdown

sourcery-ai bot commented Oct 16, 2024

Reviewer's Guide by Sourcery

This pull request implements several changes to improve the build process, enhance the snapshot warning functionality, update dependencies, and introduce a new spellcheck feature. The changes span across multiple files, including scripts, workflows, and configuration files.

Sequence diagram for snapshot warning insertion

sequenceDiagram
    participant Script as insert_snapshot_warning.js
    participant JSDOM
    participant VirtualConsole
    participant FileSystem

    Script->>VirtualConsole: Create VirtualConsole instance
    VirtualConsole->>VirtualConsole: Suppress warnings
    loop for each HTML file
        Script->>JSDOM: Load HTML file with virtualConsole
        JSDOM->>Script: Return DOM
        Script->>JSDOM: Create style element
        Script->>JSDOM: Insert WARNING_HTML at body start
        Script->>FileSystem: Write updated HTML file
    end
    Script->>Console: Log 'Done!' on success
    Script->>Console: Log error on failure
Loading

Updated class diagram for spellcheck script

classDiagram
    class Spellcheck {
        +String BASE_REF
        +String[] ASPELL_OPTS
        +int MIN_WORD_SIZE
        +makeDict(words)
        +lines(text)
    }
    class ExecP {
        +execP(command)
    }
    class FileSystem {
        +writeFile(file, content)
    }
    Spellcheck --> ExecP : uses
    Spellcheck --> FileSystem : uses
    note for Spellcheck "New script for spellchecking HTML files"
Loading

File-Level Changes

Change Details Files
Enhanced snapshot warning functionality
  • Added VirtualConsole to suppress warnings from unsupported CSS features in JSDOM
  • Implemented support for multiple HTML files in the 'out' and 'out/multipage' directories
  • Added a script to automatically close the warning details if the user navigates between snapshot pages
scripts/insert_snapshot_warning.js
scripts/snapshot_warning.html
Updated build and deployment workflows
  • Added '--no-audit' flag to npm ci commands
  • Set NPM_CONFIG_AUDIT environment variable to false
.github/workflows/build.yml
.github/workflows/deploy.yml
.github/workflows/enforce-format.yml
.github/workflows/ipr.yml
.github/workflows/preview-build.yml
.github/workflows/preview.yml
.github/workflows/publish-biblio.yml
Introduced new spellcheck feature
  • Added a new spellcheck script to detect potential typos
  • Created a new workflow to run the spellcheck on pull requests
scripts/spellcheck.mjs
.github/workflows/spellcheck.yml
Updated dependencies and configurations
  • Updated esmeta version to v0.4.3
  • Added 'TypedArrayCreateFromConstructor' to esmeta-ignore.json
  • Modified the git rev-parse command to return full SHA instead of short SHA
.github/workflows/esmeta-typecheck.yml
esmeta-ignore.json
scripts/check-form.js

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

Copy link
Copy Markdown

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, pull[bot]!). We assume it knows what it's doing!

@pull pull bot added the ⤵️ pull label Oct 16, 2024
linusg and others added 26 commits October 24, 2024 18:36
There is no use of Abstract Closures as async function bodies in ecma262 itself.
This PR is a prereq to allow the JSPI specification to pass in an AC.
... because it's talking about a string literal in *Java*.

See #3310 (comment)
(PR #2548 unfolded many invocations of Yield, but didn't change the accompanying Note-steps.)
PR #3409 changed a parameter of CreateListFromArrayLike,
but didn't make the corresponding change to the preamble.
(And PR #3419 failed to fix it.)
(Make it consistent with PR #2592)
Co-authored-by: jhnaldo <jhpjhp0223@gmail.com>
Co-authored-by: Michael Ficarra <mficarra@shapesecurity.com>
Co-authored-by: Kevin Gibbons <bakkot@gmail.com>
michaelficarra and others added 30 commits December 18, 2025 14:28
From [proposal-array-from-async](https://github.com/tc39/proposal-array-from-async).

Co-authored-by: <jschoi@jschoi.org>
Co-authored-by: Linus Groh <mail@linusgroh.de>
Co-authored-by: Michael Ficarra <github@michael.ficarra.me>
#3745)

Co-authored-by: Kevin Gibbons <bakkot@gmail.com>
Co-authored-by: Nicolò Ribaudo <nribaudo@igalia.com>
Editorial: Short-circuit return/throw on if-else step
Editorial: Remove else on short-circuit if/else-if step
Editorial: Inline if-else on true/false return
Editorial: Inline if-else on integer return
Editorial: Inline if-else on Number value return
Editorial: Invert condition on inline if-else
Editorial: Inline if-else on long if condition

Co-authored-by: Jungwoong Kim <jungwngkim@gmail.com>
Co-authored-by: Michael Ficarra <github@michael.ficarra.me>
Co-authored-by: Kevin Gibbons <bakkot@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

⤵️ pull merge-conflict Resolve conflicts manually

Projects

None yet

Development

Successfully merging this pull request may close these issues.