Merge pull request #67 from Tomguin/master

Fix Primative Maths functions
This commit is contained in:
Shane M. Clements 2014-05-12 13:00:04 -06:00
commit 28cab5b782

View file

@ -85,7 +85,7 @@ Primitives.prototype.primModulo = function(b) {
}
Primitives.prototype.primMathFunction = function(b) {
var op = interp.numarg(b, 0);
var op = interp.arg(b, 0);
var n = interp.numarg(b, 1);
switch(op) {
case 'abs': return Math.abs(n);