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

[browser] detect and assert engine features #88846

Merged
merged 5 commits into from
Jul 14, 2023

Conversation

pavelsavara
Copy link
Member

@pavelsavara pavelsavara commented Jul 13, 2023

This will fail fast during startup, if we don't have necessary JS APIs.

Contributes to #84574
Contributes to #76961

@pavelsavara pavelsavara added arch-wasm WebAssembly architecture os-browser Browser variant of arch-wasm labels Jul 13, 2023
@pavelsavara pavelsavara added this to the 8.0.0 milestone Jul 13, 2023
@pavelsavara pavelsavara self-assigned this Jul 13, 2023
@pavelsavara pavelsavara requested a review from maraf July 13, 2023 16:23
@ghost
Copy link

ghost commented Jul 13, 2023

Tagging subscribers to 'arch-wasm': @lewing
See info in area-owners.md if you want to be subscribed.

Issue Details

Contributes to #84574

Author: pavelsavara
Assignees: pavelsavara
Labels:

arch-wasm, os-browser

Milestone: 8.0.0

@pavelsavara
Copy link
Member Author

/azp run runtime-wasm

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -26,7 +26,20 @@ let mono_wasm_web_socket_close_warning = false;
const ws_send_buffer_blocking_threshold = 65536;
const emptyBuffer = new Uint8Array();

function verifyEnvironment() {
if (ENVIRONMENT_IS_SHELL) {
Copy link
Member

Choose a reason for hiding this comment

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

Shoud we move it after the typeof globalThis.WebSocket !== "function" condition?

Copy link
Member Author

Choose a reason for hiding this comment

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

for some random polyfill ? I don't think so.

Copy link
Member

@maraf maraf Jul 14, 2023

Choose a reason for hiding this comment

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

Yes, for some polyfill, or if it happens to be added... What is the reason to be that restrictive?

Copy link
Member Author

Choose a reason for hiding this comment

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

It has complex dynamic behavior and even the nodeJS polyfill doen't work well in all use-cases. I'm just loud and clear this is not supported.

@pavelsavara pavelsavara merged commit 4a880ef into dotnet:main Jul 14, 2023
@ghost ghost locked as resolved and limited conversation to collaborators Aug 23, 2023
@pavelsavara pavelsavara deleted the browser_sanity_check branch September 2, 2024 15:33
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-System.Runtime.InteropServices.JavaScript os-browser Browser variant of arch-wasm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants