From: Ryan Lucia Date: Wed, 9 Sep 2020 06:26:39 +0000 (-0400) Subject: [mono] Minor fixes to the wasm browser sample (#41992) X-Git-Tag: submit/tizen/20210909.063632~5566 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d949f2232966c40d5925bcbd6f353997d93b1ce1;p=platform%2Fupstream%2Fdotnet%2Fruntime.git [mono] Minor fixes to the wasm browser sample (#41992) Use python 3, fix typo, prevent inlining --- diff --git a/src/mono/netcore/sample/wasm/browser/Makefile b/src/mono/netcore/sample/wasm/browser/Makefile index d5227ac..05e22d8 100644 --- a/src/mono/netcore/sample/wasm/browser/Makefile +++ b/src/mono/netcore/sample/wasm/browser/Makefile @@ -13,4 +13,4 @@ clean: rm -rf bin run: - cd bin/$(CONFIG)/publish && python server.py \ No newline at end of file + cd bin/$(CONFIG)/publish && python3 server.py diff --git a/src/mono/netcore/sample/wasm/browser/Program.cs b/src/mono/netcore/sample/wasm/browser/Program.cs index 36e09e4..9ee366c 100644 --- a/src/mono/netcore/sample/wasm/browser/Program.cs +++ b/src/mono/netcore/sample/wasm/browser/Program.cs @@ -3,6 +3,7 @@ // The .NET Foundation licenses this file to you under the MIT license. using System; +using System.Runtime.CompilerServices; namespace Sample { @@ -13,6 +14,7 @@ namespace Sample Console.WriteLine ("Hello, World!"); } + [MethodImpl(MethodImplOptions.NoInlining)] public static int TestMeaning() { return 42; diff --git a/src/mono/netcore/sample/wasm/browser/index.html b/src/mono/netcore/sample/wasm/browser/index.html index 4cf3a1e..fdc43ad 100644 --- a/src/mono/netcore/sample/wasm/browser/index.html +++ b/src/mono/netcore/sample/wasm/browser/index.html @@ -9,7 +9,7 @@ - Result from Sample.Test.TestMeaaning: + Result from Sample.Test.TestMeaning: