Skip to content

Commit a2acb05

Browse files
committed
prettier
1 parent 888f229 commit a2acb05

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ main()
4444
[values]: #interfacing-with-the-interpreter
4545
[asyncify]: #asyncify
4646
[functions]: #exposing-apis
47-
[quickjs-for-quickjs]: https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-for-quickjs
47+
[quickjs-for-quickjs]: https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-for-quickjs
4848

4949
- [quickjs-emscripten](#quickjs-emscripten)
5050
- [Usage](#usage)

packages/quickjs-for-quickjs/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const context = QuickJS.createContext()
4040
setUpContext(context)
4141

4242
// allow the host QuickJS to import quickjs-for-quickjs module
43-
context.runtime.setModuleLoader(name => {
43+
context.runtime.setModuleLoader((name) => {
4444
if (name === "quickjs-for-quickjs") {
4545
return quickjsSource
4646
}
@@ -60,9 +60,7 @@ export const result = innerResult.consume(context.dump)
6060
`
6161

6262
// eval the quickjs host
63-
const handle = context
64-
.evalCode(quickjsHost, "quickjs-host.mjs")
65-
.unwrap()
63+
const handle = context.evalCode(quickjsHost, "quickjs-host.mjs").unwrap()
6664

6765
// get the result
6866
context.runtime.executePendingJob()

packages/quickjs-for-quickjs/tsup.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import {extendConfig} from "@jitl/tsconfig/tsup.base.config.js"
1+
import { extendConfig } from "@jitl/tsconfig/tsup.base.config.js"
22

33
export default extendConfig({
44
entry: ["src/index.mts"],

0 commit comments

Comments
 (0)