Skip to content

Commit 8fe4277

Browse files
authored
Merge pull request #209 from WebAssembly/tweak-handles
tweak own/borrow handles rules, refactor Canonical ABI logic
2 parents 08c60a4 + c983be3 commit 8fe4277

File tree

5 files changed

+284
-360
lines changed

5 files changed

+284
-360
lines changed

design/mvp/Binary.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,9 @@ Notes:
281281
```
282282
canon ::= 0x00 0x00 f:<core:funcidx> opts:<opts> ft:<typeidx> => (canon lift f opts type-index-space[ft])
283283
| 0x01 0x00 f:<funcidx> opts:<opts> => (canon lower f opts (core func))
284-
| 0x02 t:<typeidx> => (canon resource.new t (core func))
285-
| 0x03 t:<valtype> => (canon resource.drop t (core func))
286-
| 0x04 t:<typeidx> => (canon resource.rep t (core func))
284+
| 0x02 rt:<typeidx> => (canon resource.new rt (core func))
285+
| 0x03 rt:<typdidx> => (canon resource.drop rt (core func))
286+
| 0x04 rt:<typeidx> => (canon resource.rep rt (core func))
287287
opts ::= opt*:vec(<canonopt>) => opt*
288288
canonopt ::= 0x00 => string-encoding=utf8
289289
| 0x01 => string-encoding=utf16

0 commit comments

Comments
 (0)