You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[wasm] reduce eval in production code (dotnet#71932)
* reduce eval in production code
* fix for JSExport nested types
* update benchmark to use JSExport/JSImport instead of reflection
* fix console benchmark
Copy file name to clipboardExpand all lines: src/libraries/System.Private.Runtime.InteropServices.JavaScript/tests/System/Runtime/InteropServices/JavaScript/DelegateTests.cs
+13-13Lines changed: 13 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ public static void InvokeFunction()
18
18
HelperMarshal._functionResultValue=0;
19
19
HelperMarshal._i32Value=0;
20
20
21
-
Runtime.InvokeJS(@"
21
+
Utils.InvokeJS(@"
22
22
var funcDelegate = App.call_test_method (""CreateFunctionDelegate"", [ ]);
23
23
var res = funcDelegate (10, 20);
24
24
App.call_test_method (""InvokeI32"", [ res, res ]);
@@ -34,7 +34,7 @@ public static void InvokeFunctionInLoopUsingConstanceValues()
34
34
HelperMarshal._functionResultValue=0;
35
35
HelperMarshal._i32Value=0;
36
36
37
-
Runtime.InvokeJS(@"
37
+
Utils.InvokeJS(@"
38
38
var funcDelegate = App.call_test_method (""CreateFunctionDelegate"", [ ]);
39
39
var res = funcDelegate (10, 20);
40
40
for (let x = 0; x < 1000; x++)
@@ -53,7 +53,7 @@ public static void InvokeFunctionInLoopUsingIncrementedValues()
53
53
{
54
54
HelperMarshal._functionResultValue=0;
55
55
HelperMarshal._i32Value=0;
56
-
Runtime.InvokeJS(@"
56
+
Utils.InvokeJS(@"
57
57
var funcDelegate = App.call_test_method (""CreateFunctionDelegate"", [ ]);
58
58
var res = funcDelegate (10, 20);
59
59
for (let x = 0; x < 1000; x++)
@@ -73,7 +73,7 @@ public static void InvokeActionTReturnedByInvokingFuncT()
Copy file name to clipboardExpand all lines: src/libraries/System.Private.Runtime.InteropServices.JavaScript/tests/System/Runtime/InteropServices/JavaScript/Http/HttpRequestMessageTest.cs
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -374,7 +374,7 @@ public void ToString_NonDefaultInstanceWithCustomHeaders_DumpAllFields(string ur
Copy file name to clipboardExpand all lines: src/libraries/System.Private.Runtime.InteropServices.JavaScript/tests/System/Runtime/InteropServices/JavaScript/JavaScriptTests.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -89,7 +89,7 @@ public static async Task BagIterator()
89
89
varx=newbyte[100+attempt/100];
90
90
if(attempt%1000==0)
91
91
{
92
-
Runtime.InvokeJS("if (globalThis.gc) globalThis.gc();");// needs v8 flag --expose-gc
92
+
Utils.InvokeJS("if (globalThis.gc) globalThis.gc();");// needs v8 flag --expose-gc
0 commit comments