diff options
Diffstat (limited to 'cli/tests/testdata/inspector/memory.js')
-rw-r--r-- | cli/tests/testdata/inspector/memory.js | 13 |
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!"); |