Commit 86554bf
lib: fix incorrect use of console intrinsic
The console object was not being frozen because the intrinsic
freezing code was accessing undefined instead of the console
object.
PR-URL: #46044
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>1 parent 31b8cf1 commit 86554bfCopy full SHA for 86554bf
File tree
Expand file treeCollapse file tree
2 files changed
+10
-1
lines changedOpen diff view settings
Filter options
- lib/internal
- test/parallel
Expand file treeCollapse file tree
2 files changed
+10
-1
lines changedOpen diff view settings
Collapse file
lib/internal/freeze_intrinsics.js
Copy file name to clipboardExpand all lines: lib/internal/freeze_intrinsics.js+1-1Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
135 | 135 | |
136 | 136 | |
137 | 137 | |
138 | | - |
| 138 | + |
139 | 139 | |
140 | 140 | |
141 | 141 | |
|
Collapse file
test/parallel/test-freeze-intrinsics.js
Copy file name to clipboardExpand all lines: test/parallel/test-freeze-intrinsics.js+9Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
37 | 37 | |
38 | 38 | |
39 | 39 | |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | + |
0 commit comments