porffor 0.60.28 → 0.60.30

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/compiler/prefs.js CHANGED
@@ -1,4 +1,4 @@
1
- const onByDefault = [ 'treeshakeWasmImports', 'alwaysMemory', 'indirectCalls', 'optUnused', 'data', 'passiveData', 'rmUnusedTypes', 'optTypes', 'coctc', 'ctHash', 'closures' ];
1
+ const onByDefault = [ 'treeshakeWasmImports', 'alwaysMemory', 'indirectCalls', 'optUnused', 'data', 'passiveData', 'rmUnusedTypes', 'optTypes', 'ctHash', 'closures' ];
2
2
 
3
3
  const nameToKey = x => x.replace(/[a-z]\-[a-z]/g, y => `${y[0]}${y[2].toUpperCase()}`);
4
4
 
package/foo.cjs ADDED
@@ -0,0 +1,32 @@
1
+ // class Foo {
2
+ // constructor() {
3
+ // this.property = 'wow';
4
+ // this.baz = 42;
5
+ // console.log('baz got', this.baz);
6
+ // this.bar();
7
+ // }
8
+
9
+ // bar() {
10
+ // console.log('bar', this);
11
+ // }
12
+
13
+ // get baz() {
14
+ // console.log('baz getter', this);
15
+ // return 1337;
16
+ // }
17
+
18
+ // set baz(value) {
19
+ // console.log('baz setter', this, value);
20
+ // }
21
+ // }
22
+
23
+ // new Foo();
24
+
25
+ const arr = new Array(1000);
26
+ Object.defineProperty(arr, 'wow', {
27
+ get() {
28
+ console.log('get', this);
29
+ return 1337;
30
+ }
31
+ });
32
+ console.log('got', arr.wow);
package/jsr.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@honk/porffor",
3
- "version": "0.60.28",
3
+ "version": "0.60.30",
4
4
  "exports": "./compiler/wrap.js",
5
5
  "publish": {
6
6
  "exclude": [
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "porffor",
3
3
  "description": "An ahead-of-time JavaScript compiler",
4
- "version": "0.60.28",
4
+ "version": "0.60.30",
5
5
  "author": "Oliver Medhurst <honk@goose.icu>",
6
6
  "license": "MIT",
7
7
  "scripts": {},
package/runtime/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import fs from 'node:fs';
3
- globalThis.version = '0.60.28';
3
+ globalThis.version = '0.60.30';
4
4
 
5
5
  // deno compat
6
6
  if (typeof process === 'undefined' && typeof Deno !== 'undefined') {