pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/WebKit/JetStream/pull/293

/assets/global-68dd150ce6c8e711.css" /> Fix --test for d8 shell runner by joyeecheung · Pull Request #293 · WebKit/JetStream · GitHub
Skip to content

Fix --test for d8 shell runner#293

Open
joyeecheung wants to merge 1 commit intoWebKit:mainfrom
joyeecheung:fix-d8-test
Open

Fix --test for d8 shell runner#293
joyeecheung wants to merge 1 commit intoWebKit:mainfrom
joyeecheung:fix-d8-test

Conversation

@joyeecheung
Copy link

@joyeecheung joyeecheung commented Mar 17, 2026

There seem to be two bugs when running d8 cli.js -- --test <subset>:

  1. A typo in cli.js (cliParams.get("tests") should've been cliParams.get("test")) which leads to
cli.js:122: TypeError: Cannot read properties of undefined (reading 'split')
    let tests = cliParams.has("test") ? cliParams.get("tests").split(",") : []
                                                            ^
TypeError: Cannot read properties of undefined (reading 'split')
    at cli.js:122:63
  1. performance.mark/performance.measure in d8 requires PerformanceMark objects as arguments and do not take mark name strings.
console.error: JetStream3 failed: Error: Invalid 'startMark' argument: Not an Object
console.error: Error: Invalid 'startMark' argument: Not an Object
    at Driver.start (./JetStreamDriver.js:352:25)
    at async runJetStream (cli.js:135:9)
cli.js:141: Error: Invalid 'startMark' argument: Not an Object

This patch fixes the typo in 1. For 2, since these are only used for UI annotations, replace them with no-ops in d8 instead.

cc @camillobruni

@netlify
Copy link

netlify bot commented Mar 17, 2026

Deploy Preview for webkit-jetstream-preview ready!

Name Link
🔨 Latest commit 917279b
🔍 Latest deploy log https://app.netlify.com/projects/webkit-jetstream-preview/deploys/69b986ad8d48c10007ae4696
😎 Deploy Preview https://deploy-preview-293--webkit-jetstream-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

There seems to be two bugs when running
`d8 cli.js -- --test <subset>`:

1. A typo in cli.js (`cliParams.get("tests")` should've been
  `cliParams.get("test")`) which leads to

  ```
  cli.js:122: TypeError: Cannot read properties of undefined (reading 'split')
      let tests = cliParams.has("test") ? cliParams.get("tests").split(",") : []
                                                              ^
  TypeError: Cannot read properties of undefined (reading 'split')
      at cli.js:122:63
  ```
2. performance.mark/performance.measure in d8 requires PerformanceMark
  objects as arguments and do not take mark name strings.

  ```
  console.error: JetStream3 failed: Error: Invalid 'startMark' argument: Not an Object
  console.error: Error: Invalid 'startMark' argument: Not an Object
      at Driver.start (./JetStreamDriver.js:352:25)
      at async runJetStream (cli.js:135:9)
  cli.js:141: Error: Invalid 'startMark' argument: Not an Object
  ```

This patch fixes the typo in 1. For 2, since these are only used for
UI annotations, replace them with no-ops in d8 instead.
performance.measure ??= function(){};

if (isD8) {
performance.mark = function(){};
Copy link
Contributor

Choose a reason for hiding this comment

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

Mark and measure is supported in newer d8 versions (we do run CI tests so this does work). What d8 version were you using?

See https://crrev.com/c/6634602


if (cliArgs.length) {
let tests = cliParams.has("test") ? cliParams.get("tests").split(",") : []
let tests = cliParams.has("test") ? cliParams.get("test").split(",") : []
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a shell test as well to https://github.com/WebKit/JetStream/blob/main/tests/run-shell.mjs so we don't accidentally regress this again?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy