Skip to content

Commit 6b48960

Browse files
authored
Const NativeContext for getV8Object (#298)
* Const NativeContext for getV8Object * Cannot rely on zigs param passing
1 parent 304a12e commit 6b48960

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engines/v8/generate.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -522,7 +522,7 @@ inline fn initJSObject(
522522

523523
// getV8Object returns the existing v8.Object corresponding to the given native
524524
// pointer from the native context.
525-
pub fn getV8Object(nat_ctx: *NativeContext, nat_obj_ptr: anytype) !?v8.Object {
525+
pub fn getV8Object(nat_ctx: *const NativeContext, nat_obj_ptr: anytype) !?v8.Object {
526526
// ensure Native object is a pointer
527527
if (comptime !refl.isPointer(@TypeOf(nat_obj_ptr))) return error.NotAPointer;
528528

0 commit comments

Comments
 (0)