asm-js / validator

A reference validator for asm.js.
Apache License 2.0
1.78k stars 148 forks source link

force return to be manifestly typed #31

Closed dherman closed 11 years ago

dherman commented 11 years ago

Right now the validator is forced to perform inference to compute the result types of the functions. Come up with a policy that makes it possible to compute the function types eagerly.

dherman commented 11 years ago

I think for now we should just always require the coercion, even for floating-point literals, to keep the rules simple. Not sure there's much, if anything, we can do about preventing coercions for integer literals.

dherman commented 11 years ago

f9a1700ec9fc8b34f398dd48822afbec654094fe