porffor 0.18.8 → 0.18.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.editorconfig ADDED
@@ -0,0 +1,12 @@
1
+ # EditorConfig is awesome: https://EditorConfig.org
2
+
3
+ # top-most EditorConfig file
4
+ root = true
5
+
6
+ [*]
7
+ indent_style = space
8
+ indent_size = 2
9
+ end_of_line = lf
10
+ charset = utf-8
11
+ trim_trailing_whitespace = true
12
+ insert_final_newline = false
@@ -388,9 +388,12 @@ export const __Array_prototype_sort = (_this: any[], callbackFn: any) => {
388
388
  else {
389
389
  // 4. If comparefn is not undefined, then
390
390
  // a. Let v be ? ToNumber(? Call(comparefn, undefined, « x, y »)).
391
+ // perf: unneeded as we just check >= 0
392
+ // v = Number(callbackFn(x, y));
391
393
  v = callbackFn(x, y);
392
394
 
393
395
  // b. If v is NaN, return +0𝔽.
396
+ // perf: unneeded as we just check >= 0
394
397
  // if (Number.isNaN(v)) v = 0;
395
398
 
396
399
  // c. Return v.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "porffor",
3
3
  "description": "a basic experimental wip aot optimizing js -> wasm engine/compiler/runtime in js",
4
- "version": "0.18.8+024a81666",
4
+ "version": "0.18.10+c0227b1a9",
5
5
  "author": "CanadaHonk",
6
6
  "license": "MIT",
7
7
  "scripts": {},
package/runner/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import fs from 'node:fs';
3
- globalThis.version = '0.18.8+024a81666';
3
+ globalThis.version = '0.18.10+c0227b1a9';
4
4
 
5
5
  // deno compat
6
6
  if (typeof process === 'undefined' && typeof Deno !== 'undefined') {