Allow implicit type conversion.

This commit is contained in:
Andrew Sliwinski 2014-04-09 19:26:25 -07:00
parent 14a9f13ce8
commit b301a2f8b9
4 changed files with 3 additions and 4 deletions
js/primitives

View file

@ -46,7 +46,7 @@ Primitives.prototype.addPrimsTo = function(primTable) {
primTable['computeFunction:of:'] = this.primMathFunction;
// String primitives
primTable['concatenate:with:'] = function(b) { return (interp.arg(b, 0) + interp.arg(b, 1)).toString(); };
primTable['concatenate:with:'] = function(b) { return '' + interp.arg(b, 0) + interp.arg(b, 1); };
primTable['letter:of:'] = this.primLetterOf;
primTable['stringLength:'] = function(b) { return interp.arg(b, 0).length; };