Abort compilation if compiling non-statically known ffi calls
fixes #2043, the other reported issue.
commit88e9228dc18a87ad718303ce508aa613a1addb86
authorNiklas Larsson <niklas@mm.st>
dateTue 21 Jul 2015, 23:02 (11 years ago)
parent7a2dc7b
src/IRTS/CodegenJavaScript.hs+1
@@ -1331,6 +1331,7 @@ translateBC info bc
13311331 | TAILCALL n <- bc = jsTAILCALL info n
13321332 | FOREIGNCALL r _ (FStr n) args
13331333 <- bc = jsFOREIGN info r n (map fcall args)
1334+ | FOREIGNCALL _ _ _ _ <- bc = error "JS FFI call not statically known"
13341335 | TOPBASE n <- bc = jsTOPBASE info n
13351336 | BASETOP n <- bc = jsBASETOP info n
13361337 | STOREOLD <- bc = jsSTOREOLD info