Skip to content

Commit

Permalink
Merge branch 'refs/heads/master' into runestone
Browse files Browse the repository at this point in the history
Conflicts:
	src/lib/image/__init__.js

Signed-off-by: Brad Miller <bonelake@gmail.com>
  • Loading branch information
bnmnetp committed Sep 21, 2012
2 parents bd4e358 + 7cc8169 commit 9c71318
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/abstract.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,9 @@ Sk.abstr.numOpAndPromote = function(a, b, opfn)
} else // RNL
return ans;
}
else if (a === undefined || b === undefined) {
throw new Sk.builtin.NameError('Undefined variable in expression')
}
else if (a.constructor === Sk.builtin.lng && typeof b === "number")
return [a, Sk.builtin.lng.fromInt$(b)];
else if (b.constructor === Sk.builtin.lng && typeof a === "number")
Expand Down
1 change: 1 addition & 0 deletions src/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -165,3 +165,4 @@ Sk.builtin.ZeroDivisionError.prototype.tp$name = "ZeroDivisionError";
Sk.builtin.TimeLimitError = function(args) { Sk.builtin.Exception.apply(this, arguments); }
goog.inherits(Sk.builtin.TimeLimitError, Sk.builtin.Exception);
Sk.builtin.TimeLimitError.prototype.tp$name = "TimeLimitError";
goog.exportSymbol("Sk.builtin.TimeLimitError", Sk.builtin.TimeLimitError);
2 changes: 1 addition & 1 deletion src/lib/turtle/__init__.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ if (! TurtleGraphics) {
$(this.canvas).click(function() {
if (! theCanvas.isAnimating()) {
if (Sk.tg.fadeOnExit) // Let's this be configurable
$("#"+canvas_id).fadeOut();
$("#"+canvas_id).hide();
$("#"+canvas_id).unbind('click');
Sk.tg.canvasInit = false;
delete Sk.tg.canvasLib[canvas_id];
Expand Down

0 comments on commit 9c71318

Please sign in to comment.