Skip to content

Commit 67aafb6

Browse files
authored
feedback
1 parent e993dc3 commit 67aafb6

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

eng/native.wasm.targets

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
<NativeCMakeArg Include="-cmakeargs &quot;-DCMAKE_BUILD_LIBRARIES_CONFIGURATION=$(LibrariesConfiguration)&quot;" />
2424
<NativeCMakeArg Include="-cmakeargs &quot;-DCMAKE_BUILD_RUNTIME_CONFIGURATION=$(RuntimeConfiguration)&quot;" />
2525
<NativeCMakeArg Condition="'$(TargetsBrowser)' == 'true' and '$(RuntimeFlavor)' == 'CoreCLR'" Include="-cmakeargs &quot;-DBUILD_LIBS_NATIVE_BROWSER=1&quot;" />
26-
<NativeCMakeArg Condition="'$(TargetsBrowser)' == 'true'" Include="-cmakeargs &quot;-DBUILD_LIBS_NATIVE_BROWSER=1&quot;" />
2726
</ItemGroup>
2827

2928
<Target Name="GenerateEmccExports" Condition="'$(TargetsBrowser)' == 'true'">

src/coreclr/hosts/corerun/wasm/libCorerun.extpost.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
/* eslint-disable @typescript-eslint/no-unused-vars */
88
var fetch = fetch || undefined; var dotnetNativeModuleLoaded = false; var dotnetInternals = null;
99
export function selfRun() {
10+
const Module = {};
1011
const corePreRun = () => {
1112
// copy all node/shell env variables to emscripten env
1213
if (globalThis.process && globalThis.process.env) {
@@ -17,11 +18,10 @@ export function selfRun() {
1718

1819
Module.ENV["DOTNET_SYSTEM_GLOBALIZATION_INVARIANT"] = "true";
1920
};
20-
const Module = {
21-
preRun: [corePreRun]
22-
};
21+
Module.preRun = [corePreRun];
22+
2323
const runtimeApi = {
24-
Module: Module,
24+
Module,
2525
INTERNAL: {},
2626
runtimeId: 0,
2727
runtimeBuildInfo: {

0 commit comments

Comments
 (0)