Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the correct CLI option to enable TDZ in Hermes #138

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

gibson042
Copy link
Contributor

Fixes #125

Copy link

@leotm leotm left a comment

Choose a reason for hiding this comment

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

nice this worked perfectly earlier when eshost was running hermes cli 0.12.0 (HBC bytecode ver: 89) bin (from esvu/jsvu), i tested locally

npm list -g
/Users/leo/.nvm/versions/node/v22.13.1/lib
├── [email protected]
├── [email protected]
├── [email protected]
└── [email protected]sed -i '' 's|/Users/leo/.esvu/bin/hermes|/Users/leo/Documents/GitHub/hermes-cli-darwin-v0.12.0/hermes|g' /Users/leo/.eshost-config.jsonls -l /Users/leo/.nvm/versions/node/v22.13.1/bin/eshost
lrwxr-xr-x@ 1 leo  staff  44 31 Jan 13:37 /Users/leo/.nvm/versions/node/v22.13.1/bin/eshost -> ../lib/node_modules/eshost-cli/bin/eshost.jseshost -e "42"
#### engine262
42

#### hermes

hermes: Unknown command line argument '-fenable-tdz'.  Try: '/Users/leo/Documents/GitHub/hermes-cli-darwin-v0.12.0/hermes -help'

#### javascriptcore
42

#### spidermonkey
42

#### v8
42

#### xs
42curl -o /Users/leo/.nvm/versions/node/v22.13.1/lib/node_modules/eshost-cli/node_modules/eshost/lib/agents/hermes.js https://raw.githubusercontent.com/tc39/eshost/58370fcbd7183cc5b10b9bd39b7173def13f5db3/lib/agents/hermes.js
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  3047  100  3047    0     0  13840      0 --:--:-- --:--:-- --:--:-- 13850eshost -e "42"
#### engine262
42

#### hermes
42

#### javascriptcore
42

#### spidermonkey
42

#### v8
42

#### xs
42

approved if we want to merge this first

but latest eshost pulls in the latest hermes cli 0.13.0 (HBC bytecode ver: 96) bin

where we currently still get similar error

GitHub eshost -e "42"
#### engine262
42

#### hermes

hermes: Unknown command line argument '-Xenable-tdz'.  Try: '/Users/leo/.esvu/bin/hermes -help'

#### javascriptcore
42

#### spidermonkey
42

#### v8
42

#### xs
42

i've added a more simple/minimal fix here

Copy link

@leotm leotm left a comment

Choose a reason for hiding this comment

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

one tiny quirk fix suggestion so it works testing locally

Copy link

@leotm leotm left a comment

Choose a reason for hiding this comment

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

lgtm

@leotm
Copy link

leotm commented Feb 4, 2025

does the change look good @rwaldron?
or might eshost be archived/deprecated soon?
happy to help if you need maintainers

@leotm
Copy link

leotm commented Feb 4, 2025

was about to fork till noticed 45 branches / 40 forks
test262-fyi/eshost seems next best option (or to fork from here)

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.

hermes command line arguments are incorrect
2 participants