/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/** *ASourceFrontprovidesawaytoaccessthesourcetextofascript. * *@paramclientDevToolsClient *TheDevToolsClientinstance. *@paramformObject *Theformsentacrosstheremotedebuggingprotocol.
*/ class SourceFront extends FrontClassWithSpec(sourceSpec) {
constructor(client, form) { super(client); if (form) { this._url = form.url; // this is here for the time being, until the source front is managed // via protocol.js marshalling this.actorID = form.actor;
}
}
form(json) { this._url = json.url;
}
get actor() { returnthis.actorID;
}
get url() { returnthis._url;
}
// Alias for source.blackbox to avoid changing protocol.js packets
blackBox(range) { returnthis.blackbox(range);
}
// Alias for source.unblackbox to avoid changing protocol.js packets
unblackBox() { returnthis.unblackbox();
}
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 und die Messung sind noch experimentell.