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); }