Skip to content

Commit

Permalink
parse: update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
CanadaHonk committed Dec 9, 2024
1 parent 30a9ae4 commit 44e8404
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions compiler/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion compiler/wrap.js
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {},
Expand Down
2 changes: 1 addition & 1 deletion runner/index.js
Original file line number Diff line number Diff line change
@@ -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') {
Expand Down

0 comments on commit 44e8404

Please sign in to comment.