Skip to content

Commit

Permalink
Fixes GH-192
Browse files Browse the repository at this point in the history
  • Loading branch information
Herbert Vojčík committed May 7, 2012
1 parent f1f20af commit 440b615
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions js/boot.js
Expand Up @@ -335,9 +335,9 @@ function Smalltalk(){
}
imp = klass ? klass.fn.prototype[selector] : receiver.klass && receiver[selector];
if(imp) {
pushContext(receiver, selector, args);
var context = pushContext(receiver, selector, args);
call = imp.apply(receiver, args);
popContext();
popContext(context);
return call;
} else {
return messageNotUnderstood(receiver, selector, args);
Expand Down Expand Up @@ -431,8 +431,7 @@ function Smalltalk(){
return st.thisContext = c;
};

function popContext() {
var context = st.thisContext;
function popContext(context) {
st.thisContext = context.homeContext;
context.homeContext = undefined;
st.oldContext = context;
Expand Down

0 comments on commit 440b615

Please sign in to comment.