From 44e8404722933778c0c7f16e51d813c280ad7ab4 Mon Sep 17 00:00:00 2001 From: Oliver Medhurst Date: Sun, 8 Dec 2024 23:39:20 +0000 Subject: [PATCH] parse: update comments --- compiler/parse.js | 4 +--- compiler/wrap.js | 2 +- package.json | 2 +- runner/index.js | 2 +- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/compiler/parse.js b/compiler/parse.js index 5c971c67..a665d4b9 100644 --- a/compiler/parse.js +++ b/compiler/parse.js @@ -3,13 +3,11 @@ import './prefs.js'; const file = globalThis.file; -// should we try to support types (while parsing) const types = Prefs.parseTypes || Prefs.t || file?.endsWith('.ts'); globalThis.typedInput = types && Prefs.optTypes; -// todo: review which to use by default // supported parsers: -// - acorn +// - acorn (default) // - meriyah // - hermes-parser // - @babel/parser diff --git a/compiler/wrap.js b/compiler/wrap.js index fdab8ac3..ea7884c5 100644 --- a/compiler/wrap.js +++ b/compiler/wrap.js @@ -1,7 +1,7 @@ import { encodeVector } from './encoding.js'; import { importedFuncs } from './builtins.js'; import compile from './index.js'; -import disassemble from './ddisassemblee.js'; +import disassemble from './disassemble.js'; import { TYPES, TYPE_NAMES } from './types.js'; import { log } from './log.js'; import './prefs.js'; diff --git a/package.json b/package.json index 6d62e049..73a95e31 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "porffor", "description": "a basic experimental wip aot optimizing js -> wasm engine/compiler/runtime in js", - "version": "0.50.26", + "version": "0.50.27", "author": "CanadaHonk", "license": "MIT", "scripts": {}, diff --git a/runner/index.js b/runner/index.js index a16e6108..84b0d3e0 100644 --- a/runner/index.js +++ b/runner/index.js @@ -1,6 +1,6 @@ #!/usr/bin/env node import fs from 'node:fs'; -globalThis.version = '0.50.26'; +globalThis.version = '0.50.27'; // deno compat if (typeof process === 'undefined' && typeof Deno !== 'undefined') {