-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[blazor][wasm] Remaining legacy interop #48042
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
Comments
Thanks for contacting us. We're moving this issue to the |
Thanks for contacting us. We're moving this issue to the |
There seems to be some work to be done still here, is that correct @pavelsavara? /cc: @maraf (in case you know) |
Yes, there is. |
Thanks for contacting us. We're moving this issue to the |
Below is list of usages of legacy interop.
BINDING.call_assembly_entry_point
aspnetcore/src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts
Line 68 in 730dac2
eval()
which is CSP blockerBINDING.js_string_to_mono_string
ininvokeJSFromDotNet
aspnetcore/src/Components/Web.JS/src/Boot.WebAssembly.ts
Line 124 in 730dac2
aspnetcore/src/Components/Web.JS/src/Boot.WebAssembly.ts
Line 138 in 730dac2
IJSUnmarshalledRuntime
jsCallDispatcher
andinvokeJSJson
use-casesBINDING.unbox_mono_obj
andBINDING.conv_string
inreadStringField
which is part ofrenderBatch
aspnetcore/src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts
Line 127 in 730dac2
aspnetcore/src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts
Line 138 in 730dac2
aspnetcore/src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts
Line 142 in 730dac2
eval()
MonoHeapLock.stringCache
is pointer hazardaspnetcore/src/Components/Web.JS/src/Platform/Mono/MonoPlatform.ts
Line 139 in 730dac2
BINDING.conv_string
is already caching interned strings by their pointer (because they never move on GC)All of the uses prevent users trimming legacy interop dead code with
<WasmEnableLegacyJsInterop>false</WasmEnableLegacyJsInterop>
The text was updated successfully, but these errors were encountered: