greybel-interpreter 4.0.10 → 4.0.11
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/vm.js +0 -4
- package/package.json +1 -1
package/dist/vm.js
CHANGED
|
@@ -17,7 +17,6 @@ const context_1 = require("./context");
|
|
|
17
17
|
const instruction_1 = require("./byte-compiler/instruction");
|
|
18
18
|
const default_1 = require("./types/default");
|
|
19
19
|
const stack_1 = require("./utils/stack");
|
|
20
|
-
const nil_1 = require("./types/nil");
|
|
21
20
|
const error_1 = require("./utils/error");
|
|
22
21
|
const with_intrinsics_1 = require("./types/with-intrinsics");
|
|
23
22
|
const boolean_1 = require("./types/boolean");
|
|
@@ -221,9 +220,6 @@ class VM {
|
|
|
221
220
|
if (!(base instanceof with_intrinsics_1.CustomValueWithIntrinsics)) {
|
|
222
221
|
throw new error_1.RuntimeError(`Base left side must be a value with intrinsics!`, this);
|
|
223
222
|
}
|
|
224
|
-
else if (key instanceof nil_1.CustomNil) {
|
|
225
|
-
throw new error_1.RuntimeError(`Key left side cannot be null!`, this);
|
|
226
|
-
}
|
|
227
223
|
base.set(key, value);
|
|
228
224
|
break;
|
|
229
225
|
}
|