From 6b43a5ef76149c92e216fddb0a1ee17f736b4b6e Mon Sep 17 00:00:00 2001 From: Thomas Lively Date: Wed, 15 May 2024 12:07:34 -0700 Subject: [Strings] Remove operations not included in imported strings (#6589) The stringref proposal has been superseded by the imported JS strings proposal, but the former has many more operations than the latter. To reduce complexity, remove all operations that are part of stringref but not part of imported strings. --- src/js/binaryen.js-post.js | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'src/js') diff --git a/src/js/binaryen.js-post.js b/src/js/binaryen.js-post.js index 86a6e8df9..8d7bd6d7f 100644 --- a/src/js/binaryen.js-post.js +++ b/src/js/binaryen.js-post.js @@ -568,26 +568,12 @@ function initializeConstants() { 'BrOnNonNull', 'BrOnCast', 'BrOnCastFail', - 'StringNewUTF8', - 'StringNewWTF8', - 'StringNewLossyUTF8', - 'StringNewWTF16', - 'StringNewUTF8Array', - 'StringNewWTF8Array', 'StringNewLossyUTF8Array', 'StringNewWTF16Array', 'StringNewFromCodePoint', 'StringMeasureUTF8', - 'StringMeasureWTF8', 'StringMeasureWTF16', - 'StringMeasureIsUSV', - 'StringEncodeUTF8', - 'StringEncodeLossyUTF8', - 'StringEncodeWTF8', - 'StringEncodeWTF16', - 'StringEncodeUTF8Array', 'StringEncodeLossyUTF8Array', - 'StringEncodeWTF8Array', 'StringEncodeWTF16Array', 'StringEqEqual', 'StringEqCompare' -- cgit v1.2.3