/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
class WatchpointMap {
constructor(threadActor) { this.threadActor = threadActor; this._watchpoints = new Map();
}
add(objActor, data) { // Get the object's description before calling setWatchpoint, // otherwise we'll get the modified property descriptor instead const desc = this._setWatchpoint(objActor, data); if (!desc) { return;
}
const objWatchpoints = this._watchpoints.get(objActor.rawObj) || new Map();
// This should remove watchpoints on all of the object's properties if // a property isn't passed in as an argument if (!property) { for (const objProperty in rawObj) { this.remove(objActor, objProperty);
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.