Skip to content

Commit be214a5

Browse files
Update wit-bindgen and follow .wit syntax changes
bytecodealliance/wit-bindgen@251e84b
1 parent 6fcafc1 commit be214a5

File tree

3 files changed

+40
-40
lines changed

3 files changed

+40
-40
lines changed

ext/js/bindgen/rb-js-abi-host.wit

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
resource js-abi-value
22

3-
eval-js: function(code: string) -> js-abi-value
4-
is-js: function(value: js-abi-value) -> bool
5-
instance-of: function(value: js-abi-value, klass: js-abi-value) -> bool
6-
global-this: function() -> js-abi-value
7-
int-to-js-number: function(value: s32) -> js-abi-value
8-
string-to-js-string: function(value: string) -> js-abi-value
9-
bool-to-js-bool: function(value: bool) -> js-abi-value
10-
proc-to-js-function: function(value: u32) -> js-abi-value
11-
rb-object-to-js-rb-value: function(raw-rb-abi-value: u32) -> js-abi-value
3+
eval-js: func(code: string) -> js-abi-value
4+
is-js: func(value: js-abi-value) -> bool
5+
instance-of: func(value: js-abi-value, klass: js-abi-value) -> bool
6+
global-this: func() -> js-abi-value
7+
int-to-js-number: func(value: s32) -> js-abi-value
8+
string-to-js-string: func(value: string) -> js-abi-value
9+
bool-to-js-bool: func(value: bool) -> js-abi-value
10+
proc-to-js-function: func(value: u32) -> js-abi-value
11+
rb-object-to-js-rb-value: func(raw-rb-abi-value: u32) -> js-abi-value
1212

13-
js-value-to-string: function(value: js-abi-value) -> string
13+
js-value-to-string: func(value: js-abi-value) -> string
1414

15-
export-js-value-to-host: function(value: js-abi-value)
16-
import-js-value-from-host: function() -> js-abi-value
15+
export-js-value-to-host: func(value: js-abi-value)
16+
import-js-value-from-host: func() -> js-abi-value
1717

18-
js-value-typeof: function(value: js-abi-value) -> string
18+
js-value-typeof: func(value: js-abi-value) -> string
1919

20-
js-value-equal: function(lhs: js-abi-value, rhs: js-abi-value) -> bool
21-
js-value-strictly-equal: function(lhs: js-abi-value, rhs: js-abi-value) -> bool
20+
js-value-equal: func(lhs: js-abi-value, rhs: js-abi-value) -> bool
21+
js-value-strictly-equal: func(lhs: js-abi-value, rhs: js-abi-value) -> bool
2222

23-
reflect-apply: function(target: js-abi-value, this-argument: js-abi-value, arguments: list<js-abi-value>) -> js-abi-value
24-
reflect-construct: function(target: js-abi-value, arguments: list<js-abi-value>) -> js-abi-value
25-
reflect-delete-property: function(target: js-abi-value, property-key: string) -> bool
26-
reflect-get: function(target: js-abi-value, property-key: string) -> js-abi-value
27-
reflect-get-own-property-descriptor: function(target: js-abi-value, property-key: string) -> js-abi-value
28-
reflect-get-prototype-of: function(target: js-abi-value) -> js-abi-value
29-
reflect-has: function(target: js-abi-value, property-key: string) -> bool
30-
reflect-is-extensible: function(target: js-abi-value) -> bool
31-
reflect-own-keys: function(target: js-abi-value) -> list<js-abi-value>
32-
reflect-prevent-extensions: function(target: js-abi-value) -> bool
33-
reflect-set: function(target: js-abi-value, property-key: string, value: js-abi-value) -> bool
34-
reflect-set-prototype-of: function(target: js-abi-value, prototype: js-abi-value) -> bool
23+
reflect-apply: func(target: js-abi-value, this-argument: js-abi-value, arguments: list<js-abi-value>) -> js-abi-value
24+
reflect-construct: func(target: js-abi-value, arguments: list<js-abi-value>) -> js-abi-value
25+
reflect-delete-property: func(target: js-abi-value, property-key: string) -> bool
26+
reflect-get: func(target: js-abi-value, property-key: string) -> js-abi-value
27+
reflect-get-own-property-descriptor: func(target: js-abi-value, property-key: string) -> js-abi-value
28+
reflect-get-prototype-of: func(target: js-abi-value) -> js-abi-value
29+
reflect-has: func(target: js-abi-value, property-key: string) -> bool
30+
reflect-is-extensible: func(target: js-abi-value) -> bool
31+
reflect-own-keys: func(target: js-abi-value) -> list<js-abi-value>
32+
reflect-prevent-extensions: func(target: js-abi-value) -> bool
33+
reflect-set: func(target: js-abi-value, property-key: string, value: js-abi-value) -> bool
34+
reflect-set-prototype-of: func(target: js-abi-value, prototype: js-abi-value) -> bool

ext/witapi/bindgen/rb-abi-guest.wit

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ resource rb-abi-value
33
type rb-errno = s32
44
type rb-id = u32
55

6-
ruby-show-version: function()
7-
ruby-init: function()
8-
ruby-sysinit: function(args: list<string>)
9-
ruby-options: function(args: list<string>) -> rb-iseq
10-
ruby-script: function(name: string)
11-
ruby-init-loadpath: function()
12-
rb-eval-string-protect: function(str: string) -> tuple<rb-abi-value, s32>
13-
rb-funcallv-protect: function(recv: rb-abi-value, mid: rb-id, args: list<rb-abi-value>) -> tuple<rb-abi-value, s32>
14-
rb-intern: function(name: string) -> rb-id
15-
rb-errinfo: function() -> rb-abi-value
16-
rb-clear-errinfo: function()
6+
ruby-show-version: func()
7+
ruby-init: func()
8+
ruby-sysinit: func(args: list<string>)
9+
ruby-options: func(args: list<string>) -> rb-iseq
10+
ruby-script: func(name: string)
11+
ruby-init-loadpath: func()
12+
rb-eval-string-protect: func(str: string) -> tuple<rb-abi-value, s32>
13+
rb-funcallv-protect: func(recv: rb-abi-value, mid: rb-id, args: list<rb-abi-value>) -> tuple<rb-abi-value, s32>
14+
rb-intern: func(name: string) -> rb-id
15+
rb-errinfo: func() -> rb-abi-value
16+
rb-clear-errinfo: func()
1717

18-
rstring-ptr: function(value: rb-abi-value) -> string
18+
rstring-ptr: func(value: rb-abi-value) -> string

lib/ruby_wasm/build_system/toolchain/wit_bindgen.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class WitBindgen < ::Rake::TaskLib
44

55
def initialize(
66
build_dir:,
7-
revision: "bb33644b4fd21ecf43761f63c472cdfffe57e300"
7+
revision: "251e84b89121751f79ac268629e9285082b2596d"
88
)
99
@build_dir = build_dir
1010
@tool_dir = File.join(@build_dir, "toolchain", "wit-bindgen")

0 commit comments

Comments
 (0)