Commit 3a3b5e2
committed
fix(guest): adapt Resolver/Loader to rquickjs 0.12
rquickjs 0.12 adds an import-attributes parameter to the module
loader traits: `Resolver::resolve` and `Loader::load` now take a
trailing `Option<ImportAttributes>` (for `import ... with { type }`).
Update StubModuleLoader's impls to match the new signatures; the stub
ignores attributes since it accepts any module for syntax validation.
Signed-off-by: Simon Davies <simongdavies@users.noreply.github.com>1 parent ca40b4d commit 3a3b5e2
1 file changed
Lines changed: 14 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
66 | 72 | | |
67 | 73 | | |
68 | 74 | | |
69 | 75 | | |
70 | 76 | | |
71 | 77 | | |
72 | | - | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
73 | 84 | | |
74 | 85 | | |
75 | 86 | | |
| |||
0 commit comments