mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-14 07:21:30 +00:00
Always add a null function at table index zero
This allows function references (a table index internally) to be nullable
This commit is contained in:
@ -17,6 +17,8 @@
|
||||
(global $~argc (mut i32) (i32.const 0))
|
||||
(global $std/arraybuffer/sliced (mut i32) (i32.const 0))
|
||||
(global $HEAP_BASE i32 (i32.const 160))
|
||||
(table 1 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\13\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s\00")
|
||||
(data (i32.const 56) "\1c\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s\00")
|
||||
@ -3174,4 +3176,6 @@
|
||||
)
|
||||
)
|
||||
)
|
||||
(func $null (; 11 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user