Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
justjake committed Sep 2, 2024
1 parent 888f229 commit a2acb05
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +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-for-quickjs]: https://github.com/justjake/quickjs-emscripten/blob/main/packages/quickjs-for-quickjs

- [quickjs-emscripten](#quickjs-emscripten)
- [Usage](#usage)
Expand Down
6 changes: 2 additions & 4 deletions packages/quickjs-for-quickjs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const context = QuickJS.createContext()
setUpContext(context)

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

// eval the quickjs host
const handle = context
.evalCode(quickjsHost, "quickjs-host.mjs")
.unwrap()
const handle = context.evalCode(quickjsHost, "quickjs-host.mjs").unwrap()

// get the result
context.runtime.executePendingJob()
Expand Down
2 changes: 1 addition & 1 deletion packages/quickjs-for-quickjs/tsup.config.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import {extendConfig} from "@jitl/tsconfig/tsup.base.config.js"
import { extendConfig } from "@jitl/tsconfig/tsup.base.config.js"

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

0 comments on commit a2acb05

Please sign in to comment.