From 23d2b34d4b9aed1fd082ac4cdd01459537e687c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 24 Jan 2022 16:07:08 +0100 Subject: tests: Add inspector tests for "Memory" and "Profile" tabs (#13476) --- cli/tests/testdata/inspector/memory.js | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 cli/tests/testdata/inspector/memory.js (limited to 'cli/tests/testdata') 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!"); -- cgit v1.2.3