From 06f0b00c2d1c8cc3643d023daacf87b04c646a66 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 22 Sep 2017 16:26:43 -0700 Subject: [PATCH] Add an assert on an implemented feature rather than letting it silently fail. --- lib/wasmstandalone/src/execution.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/wasmstandalone/src/execution.rs b/lib/wasmstandalone/src/execution.rs index a106eaef9d..5551f6f651 100644 --- a/lib/wasmstandalone/src/execution.rs +++ b/lib/wasmstandalone/src/execution.rs @@ -189,7 +189,10 @@ fn relocate( write_unaligned(reloc_address as *mut i32, reloc_delta_i32); } } - // TODO: deal with jumptable relocations + assert!( + relocs.jts.is_empty(), + "TODO: deal with jumptable relocations" + ); } }