diff options
author | dcode <dcode@dcode.io> | 2023-02-01 21:05:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-01 12:05:56 -0800 |
commit | 7ce4b093b8586637482e7561ba351e8d5babceb5 (patch) | |
tree | 74d8f9ed389bebce4fd867aeed70f79aca85cb53 /src/js | |
parent | d7cb5b38c514ecee7df5641242093a05d30926b2 (diff) | |
download | binaryen-7ce4b093b8586637482e7561ba351e8d5babceb5.tar.gz binaryen-7ce4b093b8586637482e7561ba351e8d5babceb5.tar.bz2 binaryen-7ce4b093b8586637482e7561ba351e8d5babceb5.zip |
[C API] Add experimental StringNew and StringEq variants (#5471)
Adds APIs for string.from_code_point, string.new_utf8_try,
string.new_utf8_array_try (#5459) and string.compare (#5453).
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/binaryen.js-post.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/js/binaryen.js-post.js b/src/js/binaryen.js-post.js index 49a8d2b69..5bd5e5505 100644 --- a/src/js/binaryen.js-post.js +++ b/src/js/binaryen.js-post.js @@ -564,6 +564,7 @@ function initializeConstants() { 'StringNewWTF8Array', 'StringNewReplaceArray', 'StringNewWTF16Array', + 'StringNewFromCodePoint', 'StringMeasureUTF8', 'StringMeasureWTF8', 'StringMeasureWTF16', @@ -581,7 +582,9 @@ function initializeConstants() { 'StringIterMoveAdvance', 'StringIterMoveRewind', 'StringSliceWTF8', - 'StringSliceWTF16' + 'StringSliceWTF16', + 'StringEqEqual', + 'StringEqCompare' ].forEach(name => { Module['Operations'][name] = Module[name] = Module['_Binaryen' + name](); }); |