-
Notifications
You must be signed in to change notification settings - Fork 5.2k
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
temporal
doesn't work in deno.json
's unstable
field
#22123
Comments
Thanks for reporting. You hit a jackpot of complexity here! I didn't test this scenario explicitly and it turns out it's really hard to fix. That said, I'll think of a solution to fix it in v1.40.2. |
You might want to see about refactoring the code a bit so that config.json unstable flags and CLI unstable flags are always defined in the same place. |
That would be ideal, but various unstable features need to be initialized at different stages of the program lifetime - eg. |
I had a bit of time this evening so I thought I'd take a look, and you're right this is pretty complex. The What I'm unclear about is why is this particular flag different from |
That's because we need to pass a proper CLI flag to V8 to make this API available. All the other unstable APIs are our own APIs that we can enable/disable when we bootstrap the runtime. For temporal, this needs to happen before we even create a first V8 instance. |
So this is more of a V8 Flag then? I guess none of the other V8 flags can be specified in a If that's the case, is there a reason why we can't process the |
We can do that, but it requires some bigger refactor that I'm working on right now. |
It also requires processing JSONC in Rust, btw. |
I'm not sure what you mean. Configuration files already support JSONC. |
Sorry, I just assumed JSONC was handled in JavaScript and not in Rust. |
There is also a Rust implementation here: https://github.com/denoland/deno_config. There are a lot of goodies around Deno 😄 . |
Version: Deno 1.40.1
Despite having
temporal
set in theunstable
field in mydeno.json
,Temporal
is undefined and requires me to provide--unstable-temporal
.The text was updated successfully, but these errors were encountered: