Skip to content

Commit db41381

Browse files
committed
📃 docs: Fix a typo
1 parent 7ad438c commit db41381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/reference/resource_management/modularization.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ Here is an example. Assuming ``test.js`` depends on ``module.js``, the code look
221221
// Step 1: Assign a resource name to a piece of code.
222222
IV8Executor iV8Executor = v8Runtime.getExecutor(codeString).setResourceName("./module.js");
223223
// Step 2: Compile the module.js.
224-
try (V8Module v8Module = iV8Executor.compileModule()) {
224+
try (V8Module v8Module = iV8Executor.compileV8Module()) {
225225
// Step 3: Evaluate the module.js.
226226
v8Module.executeVoid();
227227
if (v8Runtime.containsModule("./module.js")) {

0 commit comments

Comments
 (0)