Closed hdgarrood closed 10 years ago
Also, Strict.Test.logBoth('hello').force()
does print 'hello' to the console (and the same happens with logInlineOnly
)
Ah, the issue is visible in the output you pasted, ffi expressions introduce an extra thunk which it shouldn't.
Using a strict wrapper with an FFI declaration seems to only work in the case where there is a separate top level type signature, and no inline type signature.
For example:
Only the
separateOnly
call seems to actually callconsole.log
. It's not an FFI thing -- the same happens with an HTML wrapper in the browser console.Here's a possibly relevant bit of the compiled JS: