Wasm conditional audit + remove CompileFunction (#69283)
authorKatelyn Gadd <kg@luminance.org>
Tue, 17 May 2022 20:05:05 +0000 (13:05 -0700)
committerGitHub <noreply@github.com>
Tue, 17 May 2022 20:05:05 +0000 (13:05 -0700)
commit6bc5c7d7b6e636173a035c5e0bcbcb39b09da59a
tree214cb6c6b68d2f937253e51832da2301ba63d79a
parent6d4d532778b248f534484be276bd92f9de743cd5
Wasm conditional audit + remove CompileFunction (#69283)

* Revise some if statements that implicitly treat the empty string as null
Add is_nullish utility function
Fix string decoder's handling of empty strings and query of string length
* Fix some uses of the logical or operator
* Remove unused CompileFunction interop API
14 files changed:
src/libraries/Common/src/Interop/Browser/Interop.Runtime.cs
src/libraries/System.Private.Runtime.InteropServices.JavaScript/src/System/Runtime/InteropServices/JavaScript/Runtime.cs
src/mono/wasm/runtime/buffers.ts
src/mono/wasm/runtime/corebindings.c
src/mono/wasm/runtime/cs-to-js.ts
src/mono/wasm/runtime/exports.ts
src/mono/wasm/runtime/js-to-cs.ts
src/mono/wasm/runtime/method-calls.ts
src/mono/wasm/runtime/queue.ts
src/mono/wasm/runtime/roots.ts
src/mono/wasm/runtime/startup.ts
src/mono/wasm/runtime/strings.ts
src/mono/wasm/runtime/types.ts
src/mono/wasm/runtime/web-socket.ts