-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
fix(unstable): Honor granular unstable flags in js runtime #21466
Conversation
@bartlomieju @crowlKats what do you think of https://github.com/jcayzac/deno/pull/1/files ? Should I add it to this PR? |
That seems okay, but please put contents of |
Awesome work @jcayzac. Unfortunately we got some merge conflicts - would you be able to resolve them? Also it would be great to add a regression test for this problem - maybe you could add a test to |
Sorry to hear that, is it because of too much load? FWIW you don't need to run all the tests - you can do |
9222f36
to
866b986
Compare
I think I resolved all the issues. The tests are now all passing. |
Self note: run startup_time benchbot once CI passes |
aaab506
to
5aaad9f
Compare
This fixes denoland#21434 for `BroadcastChannel` and `WebSocketStream`. `--unstable` still enable both, but granular unstable flags now also work: * `--unstable-net` enables `WebSocketStream`. * `--unstable-broadcast-channel` enables `BroadcastChannel`. It also introduces a map to keep track of granular unstable ids without having to sync multiple places.
/bench startup_nop_trivial |
startup_nop_trivial
start: id: server: |
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, thanks!
This fixes #21434 for
BroadcastChannel
andWebSocketStream
.--unstable
still enable both, but granular unstable flags now also work:--unstable-net
now enablesWebSocketStream
.--unstable-broadcast-channel
now enablesBroadcastChannel
.unsafe-proto
already had tests, so I didn't add any for this one.It also introduces a map to keep track of granular unstable ids without having to sync multiple places.
cargo test
passes../tools/format.js
passes without changing files../tools/lint.js
passes.