File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -1407,7 +1407,7 @@ pub fn Env(comptime State: type, comptime WebApis: type) type {
14071407 switch (try self .probeJsValueToZig (named_function , slice_type , js_value )) {
14081408 .value = > | slice_value | {
14091409 if (slice_value .len == arr .len ) {
1410- return .{ .ok = {} };
1410+ return .{ .value = @as ( * T , @ptrCast ( slice_value . ptr )) .* };
14111411 }
14121412 return .{ .invalid = {} };
14131413 },
@@ -1419,8 +1419,8 @@ pub fn Env(comptime State: type, comptime WebApis: type) type {
14191419 return .{ .ok = {} };
14201420 }
14211421 } else if (js_value .isString () and arr .child == u8 ) {
1422- const str = try valueToString ( self . call_arena , js_value , self . isolate , self .v8_context );
1423- if (str .len == arr .len ) {
1422+ const str = try js_value . toString ( self .v8_context );
1423+ if (str .lenUtf8 ( self . isolate ) == arr .len ) {
14241424 return .{ .ok = {} };
14251425 }
14261426 }
You can’t perform that action at this time.
0 commit comments