Skip to content

Commit

Permalink
Changed that uniq can be given nil.
Browse files Browse the repository at this point in the history
  • Loading branch information
smihica committed Jan 8, 2015
1 parent c6b57e9 commit 2d4047c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 3 additions & 1 deletion arc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2029,7 +2029,9 @@ var primitives_core = (new Primitives('arc.core')).define({
'uniq': [{dot: 0}, function($$) {
var u = '%g'+uniq_counter;
if (0 < arguments.length) {
u += ('-' + arguments[0].name);
if (arguments[0] !== nil) {
u += ('-' + arguments[0].name);
}
}
var rt = Symbol.get(u);
uniq_counter++;
Expand Down

0 comments on commit 2d4047c

Please sign in to comment.