Skip to content

tempDouble undefined #8774

@d3x0r

Description

@d3x0r
emcc --version
emcc (Emscripten gcc/clang-like replacement) 1.38.33 (commit 963d839afa49c7496cfb3fe5427c11e29e190130)

I'm compiling with -g and no -O flags... and loading the .js/.wasm with import.

Stat uses a variable 'tempDouble', and tempI64 which don't exist.
I'm guessing it didn't show up as an error before because not 'use strict' which loading as a module implies?

doStat:function (func, path, buf) {
                (tempI64 = [stat.size>>>0,(tempDouble=stat.size,(+(Math_abs(tempDouble))) >= 1.0 ? (tempDouble > 0.0 ? ((Math_min((+(Math_floor((tempDouble)/4294967296.0))), 4294967295.0))|0)>>>0 : (~~((+(Math_ceil((tempDouble - +(((~~(tempDouble)))>>>0))/4294967296.0)))))>>>0) : 0)],HEAP32[(((buf)+(40))>>2)]=tempI64[0],HEAP32[(((buf)+(44))>>2)]=tempI64[1]);

}

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