greybel-interpreter 0.4.8 → 0.4.9
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.
|
@@ -75,12 +75,9 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
75
75
|
}
|
|
76
76
|
return to.concat(ar || Array.prototype.slice.call(from));
|
|
77
77
|
};
|
|
78
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
79
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
80
|
-
};
|
|
81
78
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
82
79
|
exports.CustomListIterator = void 0;
|
|
83
|
-
var
|
|
80
|
+
var operation_1 = require("../types/operation");
|
|
84
81
|
var custom_type_1 = require("../types/custom-type");
|
|
85
82
|
var CustomListIterator = /** @class */ (function () {
|
|
86
83
|
function CustomListIterator(value) {
|
|
@@ -159,7 +156,7 @@ var CustomList = /** @class */ (function (_super) {
|
|
|
159
156
|
if (!origin.hasOwnProperty(setterIndex)) {
|
|
160
157
|
throw new Error("Index error (list index ".concat(setterIndex, " out of range)"));
|
|
161
158
|
}
|
|
162
|
-
if (value instanceof
|
|
159
|
+
if (value instanceof operation_1.FunctionOperationBase) {
|
|
163
160
|
origin[setterIndex] = value.fork(me);
|
|
164
161
|
}
|
|
165
162
|
else {
|