diff options
author | Thomas Lively <7121787+tlively@users.noreply.github.com> | 2022-09-20 17:12:34 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-09-20 22:12:34 +0000 |
commit | 8fe12b43db9c2b88585d27f490ae1a92cca1c676 (patch) | |
tree | 441ac4b7a410359c27f5f7048537824e84aeadbb /src/js/binaryen.js-post.js | |
parent | 4d22e2eac0eb4dfb2793ce0399f3c1a828d6544a (diff) | |
download | binaryen-8fe12b43db9c2b88585d27f490ae1a92cca1c676.tar.gz binaryen-8fe12b43db9c2b88585d27f490ae1a92cca1c676.tar.bz2 binaryen-8fe12b43db9c2b88585d27f490ae1a92cca1c676.zip |
Make closure errors into warnings in the Emscripten builds (#5063)
This should make the CI green again. Also fix one of the errors. I haven't fixed
the other errors because I don't know how.
Diffstat (limited to 'src/js/binaryen.js-post.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 2568c6093..c1c3aedd9 100644 --- a/src/js/binaryen.js-post.js +++ b/src/js/binaryen.js-post.js @@ -2567,7 +2567,7 @@ function wrapModule(module, self = {}) { self['removeExport'] = function(externalName) { return preserveStack(() => Module['_BinaryenRemoveExport'](module, strToStack(externalName))); }; - self['setMemory'] = function(initial, maximum, exportName, segments = [], shared = false, memory64 = false, internalName) { + self['setMemory'] = function(initial, maximum, exportName, segments = [], shared = false, memory64 = false, internalName = null) { // segments are assumed to be { passive: bool, offset: expression ref, data: array of 8-bit data } return preserveStack(() => { const segmentsLen = segments.length; @@ -3560,6 +3560,9 @@ const thisPtr = Symbol(); // Makes a specific expression wrapper class with the specified static members // while automatically deriving instance methods and accessors. function makeExpressionWrapper(ownStaticMembers) { + /** + * @constructor + */ function SpecificExpression(expr) { // can call the constructor without `new` if (!(this instanceof SpecificExpression)) { |