Skip to content

Commit

Permalink
Test if it fails as expected when using not implemented API
Browse files Browse the repository at this point in the history
  • Loading branch information
eregon committed Jan 16, 2020
1 parent bfa3ff6 commit 8a59353
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/json/ext/generator/generator.c
Original file line number Diff line number Diff line change
Expand Up @@ -1471,6 +1471,7 @@ void Init_generator(void)
eNestingError = rb_path2class("JSON::NestingError");
rb_gc_register_mark_object(eGeneratorError);
rb_gc_register_mark_object(eNestingError);
rb_obj_infect(eGeneratorError, eNestingError); /* Just to test */

cState = rb_define_class_under(mGenerator, "State", rb_cObject);
rb_define_alloc_func(cState, cState_s_allocate);
Expand Down

0 comments on commit 8a59353

Please sign in to comment.