Permalink
Browse files

[fix] runtime, cpsjs: Fixed catch_ and executexn

  • Loading branch information...
1 parent 34f4348 commit e6a178cf79fa865d41e0a3c1c6a53dc87b509136 @BourgerieQuentin BourgerieQuentin committed Sep 6, 2012
Showing with 4 additions and 3 deletions.
  1. +4 −3 compiler/qmlcps/qmlCpsClientLib.js
@@ -199,8 +199,9 @@ function execute1(k, arg) {
*/
function executexn(k, exn) {
var payload = k[1][2];
- (payload ? payload : default_handler_cont(k)[0])
- .apply(k[1][0], [exn]);
+ payload = (payload?payload:default_handler_cont(k)[0]);
+ payload.apply(k[1][0],[exn]);
+
}
function ccont(k, f) {
@@ -209,7 +210,7 @@ function ccont(k, f) {
function catch_(k, h) {
var k = ccont(k, k[0]);
- k[1][2] = h;
+ k[1][2] = function(x){ return h(x, k) };
return k;
}

0 comments on commit e6a178c

Please sign in to comment.