Skip to content

Commit

Permalink
progress
Browse files Browse the repository at this point in the history
  • Loading branch information
justjake committed Sep 2, 2024
1 parent ac8da8f commit 094fe7a
Show file tree
Hide file tree
Showing 97 changed files with 1,009 additions and 150 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ compiled to WebAssembly.
- Create and manipulate values inside the QuickJS runtime ([more][values]).
- Expose host functions to the QuickJS runtime ([more][functions]).
- Execute synchronous code that uses asynchronous functions, with [asyncify][asyncify].
- Supports browsers, NodeJS, Deno, Bun, Cloudflare Workers, QuickJS (QuickJS in QuickJS).
- Supports browsers, NodeJS, Deno, Bun, Cloudflare Workers, QuickJS (via [quickjs-for-quickjs][]).

[Github] | [NPM] | [API Documentation][api] | [Variants][core] | [Examples][tests]

Expand Down Expand Up @@ -44,6 +44,7 @@ main()
[values]: #interfacing-with-the-interpreter
[asyncify]: #asyncify
[functions]: #exposing-apis
[quickjs-for-quickjs]: https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-for-quickjs

- [quickjs-emscripten](#quickjs-emscripten)
- [Usage](#usage)
Expand Down
3 changes: 2 additions & 1 deletion doc/@jitl/quickjs-asmjs-mjs-release-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,8 @@ Variant-specific Emscripten build flags:
"--pre-js $(TEMPLATES)/pre-extension.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s WASM=0",
"-s SINGLE_FILE=1"
"-s SINGLE_FILE=1",
"-s STACK_SIZE=32MB"
]
```

Expand Down
1 change: 1 addition & 0 deletions doc/@jitl/quickjs-ng-wasmfile-debug-asyncify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Variant-specific Emscripten build flags:
"--pre-js $(TEMPLATES)/pre-sourceMapJson.js",
"--pre-js $(TEMPLATES)/pre-wasmOffsetConverter.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s 5MB",
"-O3"
]
```
Expand Down
1 change: 1 addition & 0 deletions doc/@jitl/quickjs-ng-wasmfile-debug-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ Variant-specific Emscripten build flags:
"--pre-js $(TEMPLATES)/pre-sourceMapJson.js",
"--pre-js $(TEMPLATES)/pre-wasmOffsetConverter.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s 5MB",
"-DQTS_SANITIZE_LEAK",
"-fsanitize=leak",
"-g2"
Expand Down
3 changes: 2 additions & 1 deletion doc/@jitl/quickjs-ng-wasmfile-release-asyncify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ Variant-specific Emscripten build flags:
"--closure 1",
"-s FILESYSTEM=0",
"--pre-js $(TEMPLATES)/pre-extension.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js"
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s 5MB"
]
```

Expand Down
3 changes: 2 additions & 1 deletion doc/@jitl/quickjs-ng-wasmfile-release-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ Variant-specific Emscripten build flags:
"--closure 1",
"-s FILESYSTEM=0",
"--pre-js $(TEMPLATES)/pre-extension.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js"
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s 5MB"
]
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ Variant-specific Emscripten build flags:
"--pre-js $(TEMPLATES)/pre-wasmOffsetConverter.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s SINGLE_FILE=1",
"-s 5MB",
"-O3"
]
```
Expand Down
1 change: 1 addition & 0 deletions doc/@jitl/quickjs-singlefile-browser-debug-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Variant-specific Emscripten build flags:
"--pre-js $(TEMPLATES)/pre-wasmOffsetConverter.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s SINGLE_FILE=1",
"-s 5MB",
"-DQTS_SANITIZE_LEAK",
"-fsanitize=leak",
"-g2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ Variant-specific Emscripten build flags:
"-s FILESYSTEM=0",
"--pre-js $(TEMPLATES)/pre-extension.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s SINGLE_FILE=1"
"-s SINGLE_FILE=1",
"-s 5MB"
]
```

Expand Down
3 changes: 2 additions & 1 deletion doc/@jitl/quickjs-singlefile-browser-release-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ Variant-specific Emscripten build flags:
"-s FILESYSTEM=0",
"--pre-js $(TEMPLATES)/pre-extension.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s SINGLE_FILE=1"
"-s SINGLE_FILE=1",
"-s 5MB"
]
```

Expand Down
1 change: 1 addition & 0 deletions doc/@jitl/quickjs-singlefile-cjs-debug-asyncify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ Variant-specific Emscripten build flags:
"--pre-js $(TEMPLATES)/pre-wasmOffsetConverter.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s SINGLE_FILE=1",
"-s 5MB",
"-O3"
]
```
Expand Down
1 change: 1 addition & 0 deletions doc/@jitl/quickjs-singlefile-cjs-debug-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Variant-specific Emscripten build flags:
"--pre-js $(TEMPLATES)/pre-wasmOffsetConverter.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s SINGLE_FILE=1",
"-s 5MB",
"-DQTS_SANITIZE_LEAK",
"-fsanitize=leak",
"-g2"
Expand Down
3 changes: 2 additions & 1 deletion doc/@jitl/quickjs-singlefile-cjs-release-asyncify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ Variant-specific Emscripten build flags:
"-s FILESYSTEM=0",
"--pre-js $(TEMPLATES)/pre-extension.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s SINGLE_FILE=1"
"-s SINGLE_FILE=1",
"-s 5MB"
]
```

Expand Down
3 changes: 2 additions & 1 deletion doc/@jitl/quickjs-singlefile-cjs-release-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ Variant-specific Emscripten build flags:
"-s FILESYSTEM=0",
"--pre-js $(TEMPLATES)/pre-extension.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s SINGLE_FILE=1"
"-s SINGLE_FILE=1",
"-s 5MB"
]
```

Expand Down
1 change: 1 addition & 0 deletions doc/@jitl/quickjs-singlefile-mjs-debug-asyncify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ Variant-specific Emscripten build flags:
"--pre-js $(TEMPLATES)/pre-wasmOffsetConverter.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s SINGLE_FILE=1",
"-s 5MB",
"-O3"
]
```
Expand Down
1 change: 1 addition & 0 deletions doc/@jitl/quickjs-singlefile-mjs-debug-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Variant-specific Emscripten build flags:
"--pre-js $(TEMPLATES)/pre-wasmOffsetConverter.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s SINGLE_FILE=1",
"-s 5MB",
"-DQTS_SANITIZE_LEAK",
"-fsanitize=leak",
"-g2"
Expand Down
3 changes: 2 additions & 1 deletion doc/@jitl/quickjs-singlefile-mjs-release-asyncify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ Variant-specific Emscripten build flags:
"-s FILESYSTEM=0",
"--pre-js $(TEMPLATES)/pre-extension.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s SINGLE_FILE=1"
"-s SINGLE_FILE=1",
"-s 5MB"
]
```

Expand Down
3 changes: 2 additions & 1 deletion doc/@jitl/quickjs-singlefile-mjs-release-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ Variant-specific Emscripten build flags:
"-s FILESYSTEM=0",
"--pre-js $(TEMPLATES)/pre-extension.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s SINGLE_FILE=1"
"-s SINGLE_FILE=1",
"-s 5MB"
]
```

Expand Down
1 change: 1 addition & 0 deletions doc/@jitl/quickjs-wasmfile-debug-asyncify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Variant-specific Emscripten build flags:
"--pre-js $(TEMPLATES)/pre-sourceMapJson.js",
"--pre-js $(TEMPLATES)/pre-wasmOffsetConverter.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s 5MB",
"-O3"
]
```
Expand Down
1 change: 1 addition & 0 deletions doc/@jitl/quickjs-wasmfile-debug-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ Variant-specific Emscripten build flags:
"--pre-js $(TEMPLATES)/pre-sourceMapJson.js",
"--pre-js $(TEMPLATES)/pre-wasmOffsetConverter.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s 5MB",
"-DQTS_SANITIZE_LEAK",
"-fsanitize=leak",
"-g2"
Expand Down
3 changes: 2 additions & 1 deletion doc/@jitl/quickjs-wasmfile-release-asyncify/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ Variant-specific Emscripten build flags:
"--closure 1",
"-s FILESYSTEM=0",
"--pre-js $(TEMPLATES)/pre-extension.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js"
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s 5MB"
]
```

Expand Down
3 changes: 2 additions & 1 deletion doc/@jitl/quickjs-wasmfile-release-sync/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ Variant-specific Emscripten build flags:
"--closure 1",
"-s FILESYSTEM=0",
"--pre-js $(TEMPLATES)/pre-extension.js",
"--pre-js $(TEMPLATES)/pre-wasmMemory.js"
"--pre-js $(TEMPLATES)/pre-wasmMemory.js",
"-s 5MB"
]
```

Expand Down
2 changes: 2 additions & 0 deletions doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ compiled to WebAssembly.
- Create and manipulate values inside the QuickJS runtime ([more][values]).
- Expose host functions to the QuickJS runtime ([more][functions]).
- Execute synchronous code that uses asynchronous functions, with [asyncify][asyncify].
- Supports browsers, NodeJS, Deno, Bun, Cloudflare Workers, QuickJS (via [quickjs-for-quickjs][]).

[Github] | [NPM] | [API Documentation][api] | [Variants][core] | [Examples][tests]

Expand Down Expand Up @@ -47,6 +48,7 @@ main()
[values]: #interfacing-with-the-interpreter
[asyncify]: #asyncify
[functions]: #exposing-apis
[quickjs-for-quickjs]: https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-for-quickjs

- [quickjs-emscripten](#quickjs-emscripten)
- [Usage](#usage)
Expand Down
18 changes: 9 additions & 9 deletions doc/quickjs-emscripten-core/classes/DisposableFail.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@

#### Source

[packages/quickjs-emscripten-core/src/lifetime.ts:426](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L426)
[packages/quickjs-emscripten-core/src/lifetime.ts:451](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L451)

## Properties

Expand All @@ -65,7 +65,7 @@
#### Source

[packages/quickjs-emscripten-core/src/lifetime.ts:427](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L427)
[packages/quickjs-emscripten-core/src/lifetime.ts:452](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L452)

## Accessors

Expand All @@ -79,7 +79,7 @@

#### Source

[packages/quickjs-emscripten-core/src/lifetime.ts:433](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L433)
[packages/quickjs-emscripten-core/src/lifetime.ts:458](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L458)

## Methods

Expand Down Expand Up @@ -117,7 +117,7 @@ Just calls the standard .dispose() method of this class.

#### Source

[packages/quickjs-emscripten-core/src/lifetime.ts:437](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L437)
[packages/quickjs-emscripten-core/src/lifetime.ts:462](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L462)

***

Expand All @@ -131,7 +131,7 @@ Just calls the standard .dispose() method of this class.

#### Source

[packages/quickjs-emscripten-core/src/lifetime.ts:443](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L443)
[packages/quickjs-emscripten-core/src/lifetime.ts:468](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L468)

***

Expand All @@ -153,7 +153,7 @@ Just calls the standard .dispose() method of this class.

#### Source

[packages/quickjs-emscripten-core/src/lifetime.ts:448](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L448)
[packages/quickjs-emscripten-core/src/lifetime.ts:473](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L473)

***

Expand Down Expand Up @@ -183,7 +183,7 @@ Just calls the standard .dispose() method of this class.

#### Source

[packages/quickjs-emscripten-core/src/lifetime.ts:384](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L384)
[packages/quickjs-emscripten-core/src/lifetime.ts:409](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L409)

***

Expand Down Expand Up @@ -211,7 +211,7 @@ Just calls the standard .dispose() method of this class.

#### Source

[packages/quickjs-emscripten-core/src/lifetime.ts:391](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L391)
[packages/quickjs-emscripten-core/src/lifetime.ts:416](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L416)

***

Expand Down Expand Up @@ -239,7 +239,7 @@ Just calls the standard .dispose() method of this class.

#### Source

[packages/quickjs-emscripten-core/src/lifetime.ts:380](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L380)
[packages/quickjs-emscripten-core/src/lifetime.ts:405](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L405)

***

Expand Down
20 changes: 10 additions & 10 deletions doc/quickjs-emscripten-core/classes/DisposableSuccess.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@

#### Source

[packages/quickjs-emscripten-core/src/lifetime.ts:402](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L402)
[packages/quickjs-emscripten-core/src/lifetime.ts:427](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L427)

## Properties

Expand All @@ -64,7 +64,7 @@
#### Source

[packages/quickjs-emscripten-core/src/lifetime.ts:400](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L400)
[packages/quickjs-emscripten-core/src/lifetime.ts:425](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L425)

***

Expand All @@ -74,7 +74,7 @@
#### Source

[packages/quickjs-emscripten-core/src/lifetime.ts:402](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L402)
[packages/quickjs-emscripten-core/src/lifetime.ts:427](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L427)

## Accessors

Expand All @@ -88,7 +88,7 @@

#### Source

[packages/quickjs-emscripten-core/src/lifetime.ts:406](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L406)
[packages/quickjs-emscripten-core/src/lifetime.ts:431](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L431)

## Methods

Expand Down Expand Up @@ -126,7 +126,7 @@ Just calls the standard .dispose() method of this class.

#### Source

[packages/quickjs-emscripten-core/src/lifetime.ts:410](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L410)
[packages/quickjs-emscripten-core/src/lifetime.ts:435](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L435)

***

Expand All @@ -140,7 +140,7 @@ Just calls the standard .dispose() method of this class.

#### Source

[packages/quickjs-emscripten-core/src/lifetime.ts:416](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L416)
[packages/quickjs-emscripten-core/src/lifetime.ts:441](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L441)

***

Expand All @@ -162,7 +162,7 @@ Just calls the standard .dispose() method of this class.

#### Source

[packages/quickjs-emscripten-core/src/lifetime.ts:420](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L420)
[packages/quickjs-emscripten-core/src/lifetime.ts:445](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L445)

***

Expand Down Expand Up @@ -192,7 +192,7 @@ Just calls the standard .dispose() method of this class.

#### Source

[packages/quickjs-emscripten-core/src/lifetime.ts:384](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L384)
[packages/quickjs-emscripten-core/src/lifetime.ts:409](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L409)

***

Expand Down Expand Up @@ -220,7 +220,7 @@ Just calls the standard .dispose() method of this class.

#### Source

[packages/quickjs-emscripten-core/src/lifetime.ts:391](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L391)
[packages/quickjs-emscripten-core/src/lifetime.ts:416](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L416)

***

Expand Down Expand Up @@ -248,7 +248,7 @@ Just calls the standard .dispose() method of this class.

#### Source

[packages/quickjs-emscripten-core/src/lifetime.ts:380](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L380)
[packages/quickjs-emscripten-core/src/lifetime.ts:405](https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-emscripten-core/src/lifetime.ts#L405)

***

Expand Down
Loading

0 comments on commit 094fe7a

Please sign in to comment.