-
Notifications
You must be signed in to change notification settings - Fork 41
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
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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.json
➜ ls -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.js
➜ eshost -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
42
➜ curl -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 --:--:-- --:--:-- --:--:-- 13850
➜ eshost -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
There was a problem hiding this 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
Co-authored-by: LeoTM <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
does the change look good @rwaldron? |
was about to fork till noticed 45 branches / 40 forks |
Fixes #125