greybel-interpreter 1.6.0 → 1.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/types/boolean.js
CHANGED
package/dist/types/function.js
CHANGED
|
@@ -81,7 +81,7 @@ class CustomFunction extends base_1.default {
|
|
|
81
81
|
}
|
|
82
82
|
toString() {
|
|
83
83
|
const args = this.argumentDefs.map((item) => item.name);
|
|
84
|
-
return `
|
|
84
|
+
return `FUNCTION(${args.join(', ')})`;
|
|
85
85
|
}
|
|
86
86
|
toTruthy() {
|
|
87
87
|
return true;
|
package/dist/utils/deep-equal.js
CHANGED
|
@@ -31,7 +31,7 @@ function equalInner(a, b, maxDepth, depth = 0) {
|
|
|
31
31
|
// true if both NaN, false otherwise
|
|
32
32
|
return a.value === NaN && b.value === NaN;
|
|
33
33
|
}
|
|
34
|
-
function equal(a, b, maxDepth =
|
|
34
|
+
function equal(a, b, maxDepth = 10) {
|
|
35
35
|
return equalInner(a, b, maxDepth);
|
|
36
36
|
}
|
|
37
37
|
exports.default = equal;
|