Skip to content

Commit 6c213c1

Browse files
Constructor of rb-abi-value should be unnecessary
1 parent 3b951cc commit 6c213c1

File tree

4 files changed

+1
-11
lines changed

4 files changed

+1
-11
lines changed

packages/gems/js/ext/js/bindgen/ext.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ extern void __wasm_import_ruby_js_js_runtime_throw_prohibit_rewind_exception(uin
8181

8282

8383

84-
8584
__attribute__((__weak__, __export_name__("cabi_post_ruby:js/ruby-runtime#rstring-ptr")))
8685
void __wasm_export_exports_ruby_js_ruby_runtime_rstring_ptr_post_return(uint8_t * arg0) {
8786
if ((*((size_t*) (arg0 + 4))) > 0) {
@@ -433,12 +432,6 @@ void ruby_js_js_runtime_throw_prohibit_rewind_exception(ext_string_t *message) {
433432
__wasm_import_ruby_js_js_runtime_throw_prohibit_rewind_exception((uint8_t *) (*message).ptr, (*message).len);
434433
}
435434

436-
__attribute__((__export_name__("ruby:js/ruby-runtime#[constructor]rb-abi-value")))
437-
int32_t __wasm_export_exports_ruby_js_ruby_runtime_constructor_rb_abi_value(void) {
438-
exports_ruby_js_ruby_runtime_own_rb_abi_value_t ret = exports_ruby_js_ruby_runtime_constructor_rb_abi_value();
439-
return (ret).__handle;
440-
}
441-
442435
__attribute__((__export_name__("ruby:js/ruby-runtime#ruby-show-version")))
443436
void __wasm_export_exports_ruby_js_ruby_runtime_ruby_show_version(void) {
444437
exports_ruby_js_ruby_runtime_ruby_show_version();

packages/gems/js/ext/js/bindgen/ext.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ extern void ruby_js_js_runtime_reflect_set(ruby_js_js_runtime_borrow_js_abi_valu
109109
extern void ruby_js_js_runtime_throw_prohibit_rewind_exception(ext_string_t *message);
110110

111111
// Exported Functions from `ruby:js/ruby-runtime`
112-
exports_ruby_js_ruby_runtime_own_rb_abi_value_t exports_ruby_js_ruby_runtime_constructor_rb_abi_value(void);
113112
void exports_ruby_js_ruby_runtime_ruby_show_version(void);
114113
void exports_ruby_js_ruby_runtime_ruby_init(void);
115114
void exports_ruby_js_ruby_runtime_ruby_sysinit(ext_list_string_t *args);
Binary file not shown.

packages/gems/js/wit/ruby-runtime.wit

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ interface ruby-runtime {
44
use js-runtime.{js-abi-value};
55

66
resource rb-iseq {}
7-
resource rb-abi-value {
8-
constructor();
9-
}
7+
resource rb-abi-value {}
108

119
type rb-errno = s32;
1210
type rb-id = u32;

0 commit comments

Comments
 (0)