mirror of
https://github.com/copy/v86.git
synced 2025-12-31 04:23:15 +00:00
minor
This commit is contained in:
parent
197d43cb76
commit
f81470a762
2 changed files with 6 additions and 6 deletions
|
|
@ -36,9 +36,9 @@ if(isMainThread)
|
|||
emulator.run();
|
||||
});
|
||||
|
||||
var SERVER_PORT = 0;
|
||||
var serial_text = "";
|
||||
var booted = false;
|
||||
let SERVER_PORT = 0;
|
||||
let serial_text = "";
|
||||
let booted = false;
|
||||
|
||||
emulator.bus.register("emulator-started", function()
|
||||
{
|
||||
|
|
@ -73,7 +73,7 @@ else
|
|||
const benchsize = workerData;
|
||||
const benchfile = Buffer.alloc(benchsize);
|
||||
|
||||
var server = createServer(function(_, response) {
|
||||
const server = createServer(function(_, response) {
|
||||
response.setHeader("content-type", "application/octet-stream");
|
||||
response.setHeader("content-length", benchsize.toString(10));
|
||||
response.write(benchfile);
|
||||
|
|
|
|||
|
|
@ -15,14 +15,14 @@ const TEST_RELEASE_BUILD = +process.env.TEST_RELEASE_BUILD;
|
|||
const { V86 } = await import(TEST_RELEASE_BUILD ? "../../build/libv86.mjs" : "../../src/main.js");
|
||||
const SHOW_LOGS = false;
|
||||
|
||||
var SERVER_PORT = 0;
|
||||
|
||||
function wait(time) {
|
||||
return new Promise((res) => setTimeout(res, time));
|
||||
}
|
||||
|
||||
if(isMainThread)
|
||||
{
|
||||
let SERVER_PORT = 0;
|
||||
|
||||
const tests =
|
||||
[
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue