[wasm] Revert back to eval in wasm InvokeJS with modularization support . (#61212)
authorMarek Fišera <mara@neptuo.com>
Fri, 5 Nov 2021 14:02:45 +0000 (15:02 +0100)
committerGitHub <noreply@github.com>
Fri, 5 Nov 2021 14:02:45 +0000 (15:02 +0100)
commit39a4a705894651490d36c3e4822f1953ef557d8b
tree9f2ed4fcb42104e10c6e4a04b31ae9b8c4f29649
parentc7be76d2a2d90c1b3f58046dd5dc29b1137ac0c6
[wasm] Revert back  to eval in wasm InvokeJS with modularization support . (#61212)

Revert back  to eval in wasm InvokeJS with modularization support .

Wrap code to evaluate in a function with MONO, BINDING, INTERNAL
and module as local variables.

Added tests for running js expressions (successful, null, undefined, global scope separation)

Co-authored-by: Pavel Savara <pavelsavara@microsoft.com>
src/libraries/System.Private.Runtime.InteropServices.JavaScript/tests/System/Runtime/InteropServices/JavaScript/MarshalTests.cs
src/mono/wasm/runtime/method-calls.ts