Comparing version 1.0.10 to 1.0.11
@@ -22,3 +22,3 @@ 'use strict'; | ||
createDimensions(dimensions, ...rest) { | ||
if (!dimensions.length) return this.type.create.apply(this.type, ...rest); | ||
if (!dimensions.length) return this.type.create(...rest); | ||
@@ -25,0 +25,0 @@ const dimension = dimensions[0]; |
@@ -20,5 +20,5 @@ 'use strict'; | ||
create(value) { | ||
return value && Math.round(value) || value; | ||
return value && Math.round(value) || 0; | ||
} | ||
} | ||
exports.Entier = Entier; |
@@ -16,3 +16,3 @@ import {Type} from './type.js' | ||
if (!dimensions.length) | ||
return this.type.create.apply(this.type, ...rest) | ||
return this.type.create(...rest) | ||
@@ -19,0 +19,0 @@ const dimension = dimensions[0] |
@@ -9,4 +9,4 @@ import * as ast from '../ast' | ||
create(value) { | ||
return value && Math.round(value) || value | ||
return value && Math.round(value) || 0 | ||
} | ||
} |
{ | ||
"name": "algo-lang", | ||
"version": "1.0.10", | ||
"version": "1.0.11", | ||
"description": "Algorithmic language interpreter (in French only for now)", | ||
@@ -5,0 +5,0 @@ "homepage": "https://bitbucket.org/lsystems/algo-lang/overview", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
485107