We were previously not setting any name or length properties on exported functions. Some sites like https://squeel.frankmayer.dev/ rely on these properties. The name property is a bit strange. Exported wasm functions have a name property which is its index in its module instance's function-address list. This patch is not enough for the squeel site to be fully functional; we will need to implement navigator.locks.
6 lines
213 B
Text
6 lines
213 B
Text
length: 2
|
|
name: 0
|
|
export name: sqlite3_aggregate_context
|
|
length descriptor: writable=false, enumerable=false, configurable=true
|
|
name descriptor: writable=false, enumerable=false, configurable=true
|
|
call result: 42
|