mirror of
https://github.com/Samsung/escargot.git
synced 2026-06-22 10:01:50 +00:00
Hide debugger enabled from public use.
Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
This commit is contained in:
parent
e3b1a9f5e6
commit
d79eb6f9e1
12 changed files with 72 additions and 51 deletions
|
|
@ -1402,7 +1402,7 @@ Value ByteCodeInterpreter::interpret(ExecutionState* state, ByteCodeBlock* byteC
|
|||
{
|
||||
#ifdef ESCARGOT_DEBUGGER
|
||||
Debugger* debugger = state->context()->debugger();
|
||||
if (debugger && debugger->enabled()) {
|
||||
if (debugger != nullptr) {
|
||||
debugger->processDisabledBreakpoint(byteCodeBlock, (uint32_t)(programCounter - (size_t)codeBuffer), state);
|
||||
}
|
||||
#endif /* ESCARGOT_DEBUGGER */
|
||||
|
|
@ -1416,7 +1416,7 @@ Value ByteCodeInterpreter::interpret(ExecutionState* state, ByteCodeBlock* byteC
|
|||
{
|
||||
#ifdef ESCARGOT_DEBUGGER
|
||||
Debugger* debugger = state->context()->debugger();
|
||||
if (debugger && debugger->enabled()) {
|
||||
if (debugger != nullptr) {
|
||||
debugger->stopAtBreakpoint(byteCodeBlock, (uint32_t)(programCounter - (size_t)codeBuffer), state);
|
||||
}
|
||||
#endif /* ESCARGOT_DEBUGGER */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue