diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-09-23 14:06:31 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-09-23 14:06:31 -0700 |
commit | 0b1b15f126c84d2fa10c174dbb313d5ac9bf7852 (patch) | |
tree | 8e1375d59f6d0c0e108ab2fd576aa1ee64160acf /src | |
parent | 45f8f9c948c5548665438827e3d6b39a40eca06e (diff) |
fix asm coercion in store abort
Diffstat (limited to 'src')
-rw-r--r-- | src/jsifier.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index ceb5c09f..c65dfdcc 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -1333,7 +1333,7 @@ function JSify(data, functionsOnly, givenFunctions) { if (isNumber(item.ident)) { // Direct read from a memory address; this may be an intentional segfault, if not, it is a bug in the source if (ASM_JS) { - return asmCoercion('abort(' + item.ident + ')', 'i32'); + return asmCoercion('abort(' + item.ident + ')', item.type); } else { item.assignTo = null; return 'throw "fault on read from ' + item.ident + '";'; |