Skip to content

Commit 48fda0f

Browse files
Guard out exported functions
because they use new binding types
1 parent 6344436 commit 48fda0f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/gems/js/ext/js/witapi-core.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,7 @@ bool rb_abi_guest_rb_set_should_prohibit_rewind(bool value) {
332332
return old;
333333
}
334334

335+
#ifdef JS_ENABLE_COMPONENT_MODEL
335336
// Exported Functions from `ruby:js/ruby-runtime`
336337
void exports_ruby_js_ruby_runtime_ruby_show_version(void) {
337338
rb_abi_guest_ruby_show_version();
@@ -392,4 +393,6 @@ bool exports_ruby_js_ruby_runtime_rb_set_should_prohibit_rewind(
392393
return rb_abi_guest_rb_set_should_prohibit_rewind(new_value);
393394
}
394395

396+
#endif
397+
395398
void Init_witapi(void) {}

0 commit comments

Comments
 (0)