File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 <PropertyGroup >
44 <TargetFramework >net9.0-browser</TargetFramework >
55 <RuntimeIdentifier >browser-wasm</RuntimeIdentifier >
6+ <BootsharpEmbedBinaries >false</BootsharpEmbedBinaries >
67 </PropertyGroup >
78
89 <ItemGroup >
Original file line number Diff line number Diff line change 11import bootsharp , { Export , Import } from "./bin/bootsharp/index.mjs" ;
22import { getNumber , getStruct } from "../fixtures.mjs" ;
3+ import fs from "fs/promises" ;
34
45/** @returns {Promise<import("../bench.mjs").Exports> } */
56export async function init ( ) {
67 Import . getNumber = getNumber ;
78 Import . getStruct = getStruct ;
89
9- await bootsharp . boot ( ) ;
10+ const content = await fs . readFile ( "./bootsharp/bin/bootsharp/bin/dotnet.native.wasm" ) ;
11+ await bootsharp . boot ( {
12+ root : "./bin" ,
13+ resources : {
14+ wasm : { name : "dotnet.native.wasm" , content } ,
15+ assemblies : [ ] ,
16+ entryAssemblyName : "Boot.dll"
17+ }
18+ } ) ;
1019
1120 return { ...Export } ;
1221}
You can’t perform that action at this time.
0 commit comments