function helloWorld(stdlib, foreign, heap) {
"use asm";
function output() {
var test = fround(0);
return fround(test);
}
return output;
}
... gives errors for both invalid return type annotation and invalid declaration of a local variable. They validate / compile fine in Firefox.
Thanks for any thoughts on this... I'm a bit confused as I'm creating much more complex functions that validate fine in FF, but even the simplest ones fail with asm.js (like the example here). I'd really like to use asm.js for unit tests in Node.
Example:
... gives errors for both invalid return type annotation and invalid declaration of a local variable. They validate / compile fine in Firefox.
Thanks for any thoughts on this... I'm a bit confused as I'm creating much more complex functions that validate fine in FF, but even the simplest ones fail with asm.js (like the example here). I'd really like to use asm.js for unit tests in Node.