Skip to content

Possible WebAssembly JSObject Improvements #110717

Open
@miroljub1995

Description

@miroljub1995

I see that some methods on JSObject are called with helper methods defined here:

export function get_property (self: any, name: string): any {

export function set_property (self: any, name: string, value: any): void {

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions