on master help sign in
Merge pull request #2454 from melted/ffi_static

Abort compilation if compiling non-statically known ffi calls

commitf605128f34aafd60bb6e8735814814cbc6b20d4e authorNiklas Larsson <metaniklas@gmail.com> dateWed 22 Jul 2015, 01:03 (11 years ago) parent455f14788e9228
1 file changed+1
src/IRTS/CodegenJavaScript.hs+1
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