escargot/tools/debugger/tests/do_eval.expected
HyukWoo Park 8c51b7c9a6 Fix bugs in debugger
* fix debugger to add breakpoint at the first line
* fix debugger not to insert any breakpoint when compiling dynamic code
* add some assertion code to detect undesirable cases

Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
2021-12-03 11:57:22 +09:00

22 lines
800 B
Text

Connecting to: localhost:6501
Connection created!!!
Stopped at tools/debugger/tests/do_eval.js:1
(escargot-debugger) b do_eval.js:7
Breakpoint 1 at tools/debugger/tests/do_eval.js:7
(escargot-debugger) c
Stopped at breakpoint:1 tools/debugger/tests/do_eval.js:7
(escargot-debugger) eval a
42(escargot-debugger) e b
Alma(escargot-debugger) e c
undefined(escargot-debugger) e d
function(){ return 1; }(escargot-debugger) e e
[object Object](escargot-debugger) print a
42(escargot-debugger) p b
Alma(escargot-debugger) p c
undefined(escargot-debugger) p d
function(){ return 1; }(escargot-debugger) p e
[object Object](escargot-debugger) e k
Exception: ReferenceError: k is not defined(escargot-debugger) p k
Exception: ReferenceError: k is not defined(escargot-debugger) c
Print: 42
Connection closed.