From c38ab782c3e69049772ca8556a8a8ddcfcf372b4 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Fri, 2 Jan 2015 17:03:37 -0800 Subject: [PATCH] Fix error that's not really an error. --- interpreter.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interpreter.ts b/interpreter.ts index 4947d5e0..9de55d62 100644 --- a/interpreter.ts +++ b/interpreter.ts @@ -1123,7 +1123,7 @@ module J2ME { } else if (methodInfo.getReturnKind() === Kind.Void && returnValue) { console.error("You returned something in a void method:", methodInfo.implKey); } else if (methodInfo.getReturnKind() !== Kind.Void && (returnValue === undefined) && - U !== J2ME.VMState.Pausing) { + !U) { console.error("You returned undefined in a non-void method:", methodInfo.implKey); } else if (typeof returnValue === "string") { console.error("You returned a non-wrapped string:", methodInfo.implKey);