Skip to content

Doesn't work in Safari #7

Closed
Closed
@kzvi

Description

@kzvi

What I see in Firefox:

What I see in Safari:

Edit:

wasm-bindgen generates this code:

const __wbg_error_29632ca09755cc79_target = console.error;

let cachedDecoder = new TextDecoder('utf-8');

// ...

export function __wbg_error_29632ca09755cc79(arg0, arg1) {
    let varg0 = getStringFromWasm(arg0, arg1);
    __wbg_error_29632ca09755cc79_target(varg0);
}

If this line:

__wbg_error_29632ca09755cc79_target(varg0);

is manually changed to this:

__wbg_error_29632ca09755cc79_target(varg0 + " ");

then it works. It seems that the string literal has to have a space in it, an empty string literal doesn't work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions