Fix Maths functions

This commit is contained in:
Tom Keeble 2014-05-10 10:26:30 +01:00
parent fa42953d58
commit 89471364ae

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);