-
Notifications
You must be signed in to change notification settings - Fork 5.4k
Open
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-System.Runtime.InteropServices.JavaScriptos-browserBrowser variant of arch-wasmBrowser variant of arch-wasm
Milestone
Description
I see that some methods on JSObject are called with helper methods defined here:
runtime/src/mono/browser/runtime/invoke-js.ts
Line 425 in 3aa1ec5
| export function get_property (self: any, name: string): any { |
runtime/src/mono/browser/runtime/invoke-js.ts
Line 420 in 3aa1ec5
| export function set_property (self: any, name: string, value: any): void { |
runtime/src/mono/browser/runtime/invoke-js.ts
Line 430 in 3aa1ec5
| export function has_property (self: any, name: string): boolean { |
Why we do not import the native ones and deprecate the old ones:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/get
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/set
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/has
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
arch-wasmWebAssembly architectureWebAssembly architecturearea-System.Runtime.InteropServices.JavaScriptos-browserBrowser variant of arch-wasmBrowser variant of arch-wasm