README for the people

This commit is contained in:
2026-03-13 14:44:41 +01:00
parent cbf0d6a9da
commit 09266e678f
2 changed files with 91 additions and 3 deletions

View File

@@ -195,7 +195,7 @@ const import = struct {
no_add: bool = false,
/// Internal use.
no_exotic: bool = false,
_pad14: u18 = 0,
_pad18: u14 = 0,
};
pub const JS_EVAL = packed struct(u32) {
@@ -1168,7 +1168,7 @@ pub const Value = extern struct {
}
pub fn getClassId(self: Value) ClassId {
return .{ .class_id = import.JS_GetClassID(self) };
return .{ .class_id = import.JS_GetClassID(self.value) };
}
};
@@ -1182,7 +1182,7 @@ pub const ClassId = extern struct {
pub const invalid: ClassId = .{ .class_id = 0 };
pub fn new() ClassId {
var class_id: import.JSClassId = 0;
var class_id: import.JSClassID = 0;
return .{ .class_id = import.JS_NewClassID(&class_id) };
}
};