greybel-interpreter 0.5.2 → 0.5.3
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.
|
@@ -106,7 +106,7 @@ var CustomList = /** @class */ (function (_super) {
|
|
|
106
106
|
function CustomList(value) {
|
|
107
107
|
var _this = _super.call(this) || this;
|
|
108
108
|
_this.slice = function (a, b) {
|
|
109
|
-
return new CustomList(this.value.slice(a.valueOf(), b.valueOf()));
|
|
109
|
+
return new CustomList(this.value.slice(a === null || a === void 0 ? void 0 : a.valueOf(), b === null || b === void 0 ? void 0 : b.valueOf()));
|
|
110
110
|
};
|
|
111
111
|
_this.value = value;
|
|
112
112
|
return _this;
|
|
@@ -75,7 +75,7 @@ var CustomString = /** @class */ (function (_super) {
|
|
|
75
75
|
return !Number.isNaN(Number(value));
|
|
76
76
|
};
|
|
77
77
|
CustomString.prototype.slice = function (a, b) {
|
|
78
|
-
return new CustomString(this.value.slice(a.valueOf(), b.valueOf()));
|
|
78
|
+
return new CustomString(this.value.slice(a === null || a === void 0 ? void 0 : a.valueOf(), b === null || b === void 0 ? void 0 : b.valueOf()));
|
|
79
79
|
};
|
|
80
80
|
CustomString.prototype[Symbol.iterator] = function () {
|
|
81
81
|
return new CustomStringIterator(this.value);
|