-
Notifications
You must be signed in to change notification settings - Fork 100
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
7 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
|
||
<!-- Import from a ES Module CDN --> | ||
<script type="module"> | ||
import { getQuickJS } from "https://esm.sh/[email protected].10" | ||
import { getQuickJS } from "https://esm.sh/[email protected].11" | ||
const QuickJS = await getQuickJS() | ||
console.log(QuickJS.evalCode("1+1")) | ||
</script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,8 +8,12 @@ | |
<body> | ||
Open your console | ||
</body> | ||
<script src="../packages/quickjs-emscripten/dist/index.global.js" type="text/javascript"></script> | ||
<!-- Then use in a script tag --> | ||
<!-- Add a script tag to load the library as the QJS global --> | ||
<script | ||
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/index.global.js" | ||
type="text/javascript" | ||
></script> | ||
<!-- Then use the QJS global in a script tag --> | ||
<script type="text/javascript"> | ||
QJS.getQuickJS().then((QuickJS) => { | ||
console.log(QuickJS.evalCode("1+1")) | ||
|