/* -*- Mode: javascript; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; js-indent-level: 2; -*- */ /* vim: set ft=javascript ts=2 et sw=2 tw=80: */ /* 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"; /** * JSD2 actors. */ /** * Creates a ThreadActor. * * ThreadActors manage a JSInspector object and manage execution/inspection * of debuggees. * * @param aHooks object * An object with preNest and postNest methods for calling when entering * and exiting a nested event loop, addToParentPool and * removeFromParentPool methods for handling the lifetime of actors that * will outlive the thread, like breakpoints. * @param aGlobal object [optional] * An optional (for content debugging only) reference to the content * window. */ function ThreadActor(aHooks, aGlobal) { this._state = "detached"; this._frameActors = []; this._environmentActors = []; this._hooks = {}; this._hooks = aHooks; this.global = aGlobal; /** * A script cache that maps script URLs to arrays of different Debugger.Script * instances that have the same URL. For example, when an inline