-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allows mounting on a specific path (#39)
- Loading branch information
Showing
8 changed files
with
61 additions
and
19 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
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
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
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
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
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
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 |
---|---|---|
@@ -1,4 +1,8 @@ | ||
/* example of JS module */ | ||
import * as module from './fib_module.js'; | ||
import * as module_a from './a/fib_module.js'; | ||
import * as module_b from './b/fib_module.js'; | ||
|
||
console.log(`fib(10)=${module.fib(10)}!`); | ||
console.log(`fib(10)=${module_a.fib(10)}!`); | ||
console.log(`fib(10)=${module_b.fib(10)}!`); |
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 |
---|---|---|
@@ -1,4 +1,7 @@ | ||
import * as ckb from "@ckb-js-std/bindings"; | ||
ckb.mount(2, ckb.SOURCE_CELL_DEP) | ||
|
||
console.log("init.js"); | ||
ckb.mount(2, ckb.SOURCE_CELL_DEP, "/") | ||
ckb.mount(2, ckb.SOURCE_CELL_DEP, "/a") | ||
ckb.mount(2, ckb.SOURCE_CELL_DEP, "/b/") | ||
|
||
console.log("init.js"); |