Skip to content

Commit

Permalink
getNativeArg: thow expection on getNativeObject err
Browse files Browse the repository at this point in the history
  • Loading branch information
krichprollsch committed Jan 18, 2024
1 parent c16c1f8 commit 78b36c2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/engines/v8/generate.zig
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,7 @@ fn getNativeArg(
if (!js_value.isObject()) return JSError.InvalidArgument;

// JS object
const ptr = getNativeObject(
T_refl,
js_value.castTo(v8.Object),
) catch unreachable; // TODO: throw js exception
const ptr = try getNativeObject(T_refl, js_value.castTo(v8.Object));
if (arg_T.underPtr() != null) {
value = ptr;
} else {
Expand Down

0 comments on commit 78b36c2

Please sign in to comment.