mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-12 22:41:27 +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:
@ -34,6 +34,8 @@
|
||||
(global $~lib/map/FREE_FACTOR f64 (f64.const 0.75))
|
||||
(global $~lib/map/FILL_FACTOR f64 (f64.const 2.6666666666666665))
|
||||
(global $HEAP_BASE i32 (i32.const 144))
|
||||
(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")
|
||||
@ -12521,4 +12523,6 @@
|
||||
(call $std/map/test<f32,i32>)
|
||||
(call $std/map/test<f64,i32>)
|
||||
)
|
||||
(func $null (; 112 ;) (type $v)
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user