Commits

portix committed b1d10c8

Call deferred_reject in deferred_reject instead of deferred_resolve

  • Participants
  • Parent commits a093658

Comments (0)

Files changed (1)

             if (ret && !JSValueIsUndefined(ctx, ret))
             {
                 JSValueRef args[] = { ret };
-                deferred_resolve(ctx, f, next, 1, args, exc);
+                deferred_reject(ctx, f, next, 1, args, exc);
             }
             else 
-                deferred_resolve(ctx, f, next, argc, argv, exc);
+                deferred_reject(ctx, f, next, argc, argv, exc);
         }
     }
     return UNDEFINED;