Skip to content

Commit

Permalink
Special case for Truffle Ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
ohler55 committed Aug 15, 2023
1 parent 2cc3ef7 commit 7c95d34
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ext/oj/dump_compat.c
Original file line number Diff line number Diff line change
Expand Up @@ -896,7 +896,11 @@ void oj_dump_compat_val(VALUE obj, int depth, Out out, bool as_ok) {
if (0 < out->argc) {
set_state_depth(*out->argv, depth);
}
#ifdef TRUFFLERUBY
rb_raise(rb_eArgError, "Too deeply nested.");
#else
raise_json_err("Too deeply nested", "NestingError");
#endif
}
#endif
}
Expand Down

0 comments on commit 7c95d34

Please sign in to comment.