summaryrefslogtreecommitdiff
path: root/test/wasm2js/int_exprs.2asm.js
diff options
context:
space:
mode:
authorWill Cohen <willcohen@users.noreply.github.com>2023-01-04 13:47:47 -0500
committerGitHub <noreply@github.com>2023-01-04 18:47:47 +0000
commita96fe1a8422140072db7ad7db421378b87898a0d (patch)
tree050682903ba63c12bf6cb38810642b708bc22bc4 /test/wasm2js/int_exprs.2asm.js
parent85e5d52e860adf1fa149b731ace79c9ea88b1bd2 (diff)
downloadbinaryen-a96fe1a8422140072db7ad7db421378b87898a0d.tar.gz
binaryen-a96fe1a8422140072db7ad7db421378b87898a0d.tar.bz2
binaryen-a96fe1a8422140072db7ad7db421378b87898a0d.zip
wasm2js: Avoid emitting non-JS code during opt (#5378)
As noted in #4806, trying to optimize past level 0 can result in passes emitting non-JS code, which is then unable to be converted during final output. This commit creates a new targetJS option in PassOptions, which can be checked inside each pass where non-JS code might be emitted. This commit initially adds that logic to OptimizeInstructions, where this issue was first noticed.
Diffstat (limited to 'test/wasm2js/int_exprs.2asm.js')
0 files changed, 0 insertions, 0 deletions