Fix template memory leak when debugger is running (#4572)
JerryScript-DCO-1.0-Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
next
|
||||
next
|
||||
n
|
||||
n
|
||||
next
|
||||
n
|
||||
next
|
||||
c
|
||||
|
||||
@@ -2,8 +2,19 @@ Connecting to: localhost:5001
|
||||
Stopped at tests/debugger/do_next.js:15
|
||||
(jerry-debugger) next
|
||||
out: next test
|
||||
Stopped at tests/debugger/do_next.js:17
|
||||
Stopped at tests/debugger/do_next.js:28
|
||||
(jerry-debugger) next
|
||||
out: var cat
|
||||
Stopped at tests/debugger/do_next.js:18
|
||||
out: Func
|
||||
Stopped at tests/debugger/do_next.js:30
|
||||
(jerry-debugger) n
|
||||
Stopped at tests/debugger/do_next.js:33
|
||||
(jerry-debugger) n
|
||||
out: Func
|
||||
Stopped at tests/debugger/do_next.js:35
|
||||
(jerry-debugger) next
|
||||
Stopped at tests/debugger/do_next.js:39
|
||||
(jerry-debugger) n
|
||||
Stopped at tests/debugger/do_next.js:40
|
||||
(jerry-debugger) next
|
||||
Stopped at tests/debugger/do_next.js:42
|
||||
(jerry-debugger) c
|
||||
|
||||
@@ -14,15 +14,29 @@
|
||||
|
||||
print("next test");
|
||||
|
||||
print ("var cat");
|
||||
var cat = 'cat';
|
||||
|
||||
function test()
|
||||
{
|
||||
function f()
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
print("Func");
|
||||
return f;
|
||||
}
|
||||
|
||||
test();
|
||||
var f = test(),
|
||||
g,
|
||||
h = f();
|
||||
|
||||
{
|
||||
let a = test(),
|
||||
b,
|
||||
c = a();
|
||||
}
|
||||
|
||||
|
||||
eval("(function () {} `a`)")
|
||||
gc();
|
||||
|
||||
f();
|
||||
|
||||
Reference in New Issue
Block a user