Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b5267a6

Browse filesBrowse files
hashseedMylesBorins
authored andcommitted
test: force context allocation in test module
V8's behavior changed in c3bd741efd. Top-level variables in a module are no longer context-allocated by default. PR-URL: #18312 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent cc80914 commit b5267a6
Copy full SHA for b5267a6

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Collapse file

‎test/fixtures/es-modules/loop.mjs‎

Copy file name to clipboardExpand all lines: test/fixtures/es-modules/loop.mjs
+4-1Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,7 @@ while (t > 0) {
77
console.log(`Outputed message #${k++}`);
88
}
99
}
10-
process.exit(55);
10+
process.exit(55);
11+
12+
// test/parallel/test-inspector-esm.js expects t and k to be context-allocated.
13+
(function force_context_allocation() { return t + k; })

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.