From 6fc63bf2fc20a24914b808a6028dfee4085ebff7 Mon Sep 17 00:00:00 2001 From: Brendan Dahl Date: Mon, 11 May 2015 11:22:49 -0700 Subject: [PATCH] Use scheduler for async exceptions as well. --- native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/native.js b/native.js index b8a6c0be..8b76132b 100644 --- a/native.js +++ b/native.js @@ -20,7 +20,7 @@ function asyncImpl(returnKind, promise) { var classInfo = CLASSES.getClass("org/mozilla/internal/Sys"); var methodInfo = classInfo.getMethodByNameString("throwException", "(Ljava/lang/Exception;)V", true); ctx.pushFrame(Frame.create(methodInfo, [exception])); - ctx.execute(); + J2ME.Scheduler.enqueue(ctx); }); $.pause(asyncImplStringAsync); }