Changeset 27296 in project


Ignore:
Timestamp:
08/25/12 14:11:18 (9 years ago)
Author:
felix winkelmann
Message:

bugfix in debug-variant of SPOCK.count()

Location:
release/4/spock/branches/nothrow
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • release/4/spock/branches/nothrow/codegen.scm

    r25210 r27296  
    178178           (indent
    179179            (lambda ()
     180              ;;XXX this will not unwind, but at least decrease the counter
    180181              (emit nl "SPOCK.count(arguments")
    181182              (if dest
  • release/4/spock/branches/nothrow/debug.js

    r22775 r27296  
    4141    if(--SPOCK.stack <= 0) {
    4242        ++SPOCK.restartCount;
    43         throw new SPOCK.Continuation(args.callee, Array.prototype.slice.call(args));
     43        return new SPOCK.Continuation(args.callee, Array.prototype.slice.call(args));
    4444    }
    4545
    4646    if(loc) SPOCK.trace(loc, args);
     47
     48    return false;
    4749};
    4850
  • release/4/spock/branches/nothrow/runtime.js

    r25210 r27296  
    261261SPOCK.rest = function(args, count, loc) {
    262262    var rest = null;
    263 
     263   
     264    // this will not unwind, but decrease the counter
    264265    SPOCK.count(args, loc);
    265266
Note: See TracChangeset for help on using the changeset viewer.