mirror of
https://github.com/scratchfoundation/scratch-html5.git
synced 2025-02-26 06:03:52 -05:00
Fix Maths functions
This commit is contained in:
parent
fa42953d58
commit
89471364ae
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue