Skip to content

olcPixelGameEngine fails to compile under emscripten due to misspelled Javascript #404

@DaemonTehProot

Description

@DaemonTehProot

The Emscripten port has an issue where a misspelled check for undefined prevents programs from compiling

if (Module.olc_AspectRatio == = undefined)

"== =" should be written as "===" but is not and results in a syntax error detected at compile time when optimizations are on. But a silent runtime error with optimizations off.

This is located in an EM_ASM call in the Platform_Emscripten::CreateWindowPane function.
Unsure of how long this bug has existed for.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions