"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.contextId = exports.requestId = exports.GlobalId = void 0;
class GlobalId {
    constructor(start = 0, step = 1) {
        this.start = start;
        this.step = step;
        this.globalId = 0;
        this.globalId = start;
    }
    get id() {
        return this.globalId;
    }
    create() {
        this.globalId += this.step;
        return this.globalId;
    }
}
exports.GlobalId = GlobalId;
/**
 * 全局调试协议 request command id
 */
exports.requestId = new GlobalId(0, -1);
/**
 * 全局 js 执行上下文 id
 */
exports.contextId = new GlobalId();
