summaryrefslogtreecommitdiff
path: root/cli/tests/testdata/inspector/memory.js
diff options
context:
space:
mode:
authorBartek IwaƄczuk <biwanczuk@gmail.com>2022-01-24 16:07:08 +0100
committerGitHub <noreply@github.com>2022-01-24 16:07:08 +0100
commit23d2b34d4b9aed1fd082ac4cdd01459537e687c5 (patch)
treedc7b8c2fe3d7203dd09f56bea59d135d7f67f9ce /cli/tests/testdata/inspector/memory.js
parentd08da942339b86b2458ab06585e2f6e4ed30647b (diff)
tests: Add inspector tests for "Memory" and "Profile" tabs (#13476)
Diffstat (limited to 'cli/tests/testdata/inspector/memory.js')
-rw-r--r--cli/tests/testdata/inspector/memory.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/cli/tests/testdata/inspector/memory.js b/cli/tests/testdata/inspector/memory.js
new file mode 100644
index 000000000..082d6367c
--- /dev/null
+++ b/cli/tests/testdata/inspector/memory.js
@@ -0,0 +1,13 @@
+const objs = [];
+
+class Foo {
+ foo() {
+ return "foo";
+ }
+}
+
+setInterval(() => {
+ objs.push(new Foo());
+}, 1000);
+
+console.log("hello!");