mirror of
https://github.com/nodejs/node.git
synced 2026-11-09 15:11:11 -05:00
This option provides a new way of terminating the probing by specifying a limit for the per-probe hit evaluation. When any probe reaches the limit, the session removes the V8 breakpoints and finishes with a `completed` terminal event rather than waiting for the target to exit or timeout. This would be useful when we provide a way to attach to and probe a running process in the future. Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com> PR-URL: https://github.com/nodejs/node/pull/63704 Refs: https://github.com/nodejs/node/issues/63646 Reviewed-By: Jan Martin <jan.krems@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
8 lines
116 B
JavaScript
8 lines
116 B
JavaScript
'use strict';
|
|
|
|
let total = 0;
|
|
for (let index = 0; index < 3; index++) {
|
|
total += index + 1;
|
|
}
|
|
console.log(total);
|