Skip to content

Commit e8635ea

Browse files
committed
Rename JS::ModuleInstantiate to JS::ModuleLink
1 parent 2c64bde commit e8635ea

2 files changed

Lines changed: 9 additions & 1 deletion

File tree

docs/Migration Guide.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
This document describes how to port your code from using one ESR version
44
of SpiderMonkey to the next ESR version.
55

6+
## ESR 102 to ESR 115 ##
7+
8+
### Various API changes ###
9+
10+
This is a non-exhaustive list of minor API changes and renames.
11+
12+
- `JS::ModuleInstantiate``JS::ModuleLink`
13+
614
## ESR 91 to ESR 102 ##
715

816
### Object private pointers ###

examples/modules.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ static bool ModuleExample(JSContext* cx) {
106106
}
107107

108108
// Resolve imports by loading and compiling additional scripts.
109-
if (!JS::ModuleInstantiate(cx, mod)) {
109+
if (!JS::ModuleLink(cx, mod)) {
110110
boilerplate::ReportAndClearException(cx);
111111
return false;
112112
}

0 commit comments

Comments
 (0)