Bug 1568203 - Removed unused requestEvaluation's frame argument. r=nchevobbe

Differential Revision: https://phabricator.services.mozilla.com/D39052

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Alexandre Poirot 2019-07-24 08:35:48 +00:00
Родитель 0d64e50e68
Коммит b05d25d7d6
2 изменённых файлов: 3 добавлений и 8 удалений

Просмотреть файл

@ -802,9 +802,7 @@ class JSTerm extends Component {
lines: str.split(/\n/).length,
});
const { frameActor, client } = this.props.serviceContainer.getFrameActor(
options.frame
);
const { frameActor, client } = this.props.serviceContainer.getFrameActor();
return client.evaluateJSAsync(str, {
frameActor,

Просмотреть файл

@ -161,22 +161,19 @@ class WebConsoleWrapper {
* Retrieve the FrameActor ID given a frame depth, or the selected one if no
* frame depth given.
*
* @param {Number} frame: optional frame depth.
* @return { frameActor: String|null, client: Object }:
* frameActor is the FrameActor ID for the given frame depth
* (or the selected frame if it exists), null if no frame was found.
* client is the WebConsole client for the thread the frame is
* associated with.
*/
getFrameActor: (frame = null) => {
getFrameActor: () => {
const state = this.hud.getDebuggerFrames();
if (!state) {
return { frameActor: null, client: webConsoleUI.webConsoleClient };
}
const grip = Number.isInteger(frame)
? state.frames[frame]
: state.frames[state.selected];
const grip = state.frames[state.selected];
if (!grip) {
return { frameActor: null, client: webConsoleUI.webConsoleClient };