diff options
author | 2023-08-24 18:39:28 -0300 | |
---|---|---|
committer | 2023-08-24 14:39:28 -0700 | |
commit | 55eb4ffe8fc8708d5a44c53fe75026a03f0a4de8 (patch) | |
tree | b807c9eb1819e28eb991e583e4c7550b996a0ff2 /src/api/schema.js | |
parent | a051a6f62014b740702594527b19464ce24ba32b (diff) | |
download | bun-55eb4ffe8fc8708d5a44c53fe75026a03f0a4de8.tar.gz bun-55eb4ffe8fc8708d5a44c53fe75026a03f0a4de8.tar.zst bun-55eb4ffe8fc8708d5a44c53fe75026a03f0a4de8.zip |
Update bun-polyfills & bun-wasm (#4246)
* automate Bun.version & revision polyfills
* polyfill Bun.gc
* bun:jsc module initial polyfills
* update peechy schema
* bun-polyfills: fix some project configs
* bun-wasm: lots of fixes
* bun-polyfills: Bun.Transpiler impl.
* revision hash update
Diffstat (limited to 'src/api/schema.js')
-rw-r--r-- | src/api/schema.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/api/schema.js b/src/api/schema.js index 4931cd716..6fb4b1d8d 100644 --- a/src/api/schema.js +++ b/src/api/schema.js @@ -2058,6 +2058,9 @@ function decodeScanResult(bb) { var length = bb.readVarUint(); var values = (result["imports"] = Array(length)); for (var i = 0; i < length; i++) values[i] = decodeScannedImport(bb); + var length = bb.readVarUint(); + var values = (result["errors"] = Array(length)); + for (var i = 0; i < length; i++) values[i] = decodeMessage(bb); return result; } @@ -2087,6 +2090,19 @@ function encodeScanResult(message, bb) { } else { throw new Error('Missing required field "imports"'); } + + var value = message["errors"]; + if (value != null) { + var values = value, + n = values.length; + bb.writeVarUint(n); + for (var i = 0; i < n; i++) { + value = values[i]; + encodeMessage(value, bb); + } + } else { + throw new Error('Missing required field "errors"'); + } } function decodeScannedImport(bb) { |