Skip to content

Commit 985731f

Browse files
Merge pull request #2722 from MicrosoftDocs/user/pabrosse/js-error
Fixed JS error in code snippet
2 parents 791afab + f27e06c commit 985731f

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

microsoft-edge/devtools-guide-chromium/memory-problems/heap-snapshots.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -265,10 +265,9 @@ The heap profiler has the ability to reflect bidirectional dependencies between
265265
DOM leaks may be bigger than you think. Consider the following sample. When is the `#tree` garbage-collected?
266266

267267
```javascript
268-
var select = document.querySelector;
269-
var treeRef = select("#tree");
270-
var leafRef = select("#leaf");
271-
var body = select("body");
268+
var treeRef = document.querySelector("#tree");
269+
var leafRef = document.querySelector("#leaf");
270+
var body = document.querySelector("body");
272271

273272
body.removeChild(treeRef);
274273

0 commit comments

Comments
 (0)