Skip to content

Remove extends = Object from js_sys::{Number,JsString}? #1445

@alexcrichton

Description

@alexcrichton

In #1405 we seem to be leaning towards JsString both representing the native String class as well as the string primitive in JS. I suspect we'd want to do the same for Number too!

Currently, though, both these types inhereit from Object which means they Deref to Object. If we use native strings in JsString (which we actually already do) then this may not be quite right.

Should we remove the extends annotation from these types so they both deref to JsValue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    js-sysIssues related to the `js-sys` cratequestion

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions