Skip to content

webidl_binder.py contains unguarded asserts #21198

Open
@VirtualTim

Description

@VirtualTim

As of Emscripten 3.1.48:

The JS assert function is no longer available in release builds when -sSTRICT is used. This should only affect users with custom JS library code which doesn't use #if ASSERTIONS guards around their assert calls.

webidl_binder.py contains several asserts which aren't guarded. Incomplete list:

assert(ensureCache.buffer);

assert(ensureCache.buffer);

assert(len > 0); // null terminator, at least

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