From 3e5ce644e0336bc7ce82a5f6df6b1f671097556d Mon Sep 17 00:00:00 2001 From: Daniel Wirtz Date: Tue, 5 Jan 2021 21:48:14 +0100 Subject: Improve C and JS API module inspection features (#3464) * BinaryenGetFunction, BinaryenGetGlobal, BinaryenGetEvent now return NULL if an element does not exist * Adds BinaryenGetExport, BinaryenGetNumGlobals, BinaryenGetGlobalByIndex * Corrects BinaryenGetNumFunctions return type * Adds related descriptions of C API functions --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 27a097a76..ce017cfc3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,8 @@ Current Trunk This can be revived if needed from git history (#3261). - Make `NUM_PARAMS` in `FuncCastEmulation` a runtime configuration option named `max-func-params`. This defaults to the original value of 16. +- `BinaryenGetFunction`, `BinaryenGetGlobal` and `BinaryenGetEvent` now return + `NULL` instead of aborting when the respective element does not yet exist. v98 --- -- cgit v1.2.3