aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/zilch/App/object-store.js30
-rw-r--r--src/zilch/Env/value.zig14
2 files changed, 21 insertions, 23 deletions
diff --git a/src/zilch/App/object-store.js b/src/zilch/App/object-store.js
index 33879c6..6699c41 100644
--- a/src/zilch/App/object-store.js
+++ b/src/zilch/App/object-store.js
@@ -1,22 +1,20 @@
class ObjectStore {
static types = Object.freeze({
- 0: "uninit",
- 1: "object",
- 2: "string",
- 3: "int",
- 4: "uint",
- 5: "float",
- 6: "undefined",
- 7: "future",
+ 0: "object",
+ 1: "string",
+ 2: "int",
+ 3: "uint",
+ 4: "float",
+ 5: "undefined",
+ 6: "future",
- "uninit": 0,
- "object": 1,
- "string": 2,
- "int": 3,
- "uint": 4,
- "float": 5,
- "undefined": 6,
- "future": 7,
+ "object": 0,
+ "string": 1,
+ "int": 2,
+ "uint": 3,
+ "float": 4,
+ "undefined": 5,
+ "future": 6,
});
static store = { 0: null };
diff --git a/src/zilch/Env/value.zig b/src/zilch/Env/value.zig
index b135366..ea54ff2 100644
--- a/src/zilch/Env/value.zig
+++ b/src/zilch/Env/value.zig
@@ -137,13 +137,13 @@ pub const Value = extern struct {
}
pub const Kind = enum(u8) {
- object = 1,
- string = 2,
- int = 3,
- uint = 4,
- float = 5,
- undefined = 6,
- future = 7,
+ object = 0,
+ string = 1,
+ int = 2,
+ uint = 3,
+ float = 4,
+ undefined = 5,
+ future = 6,
pub fn asType(comptime self: Kind) type {
return switch (self) {