You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
function AsmModule(stdlib) {
'use asm';
var m1 = stdlib.fround;
function f1() {
var x = m1(1.5);
var y = 1;
y = ~~~~x;
return ~~~x;
}
return f1;
}
var global = { Math: Math };
var asmModule = AsmModule(global);
AsmModule(268435456);
print(asmModule());
print(asmModule());
This case and several others like it are because CC aborts if an ASMModule is called with invalid params AFTER previously being called with valid params, looking at it I cannot see why this would be done except perhaps for testing purposes?
@pleath do you know why this was done? (it's from the initial commit)
This is by design BUT I do wonder if it is a bad design choice AND it is not per-spec, per-spec when an ASM module is called in a non-conformant way it should behave like normal JS, not abort.
Enviroment
ubuntu18
poc
callstack
The text was updated successfully, but these errors were encountered: