README for the people
This commit is contained in:
@@ -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) };
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user