Skip to content

Commit

Permalink
Bug 1400566 - Explicitly get the global of |this| in CoverageUtils.js…
Browse files Browse the repository at this point in the history
…m. r=kmag

With shared JSM globals, |this| is an NSVO, not a global.

MozReview-Commit-ID: V1j4tipw3m
  • Loading branch information
amccreight committed Sep 16, 2017
1 parent b47d76c commit 4fe1e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/modules/CoverageUtils.jsm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const Cu = Components.utils;
/* globals Debugger */
const {addDebuggerToGlobal} = Cu.import("resource://gre/modules/jsdebugger.jsm",
{});
addDebuggerToGlobal(this);
addDebuggerToGlobal(Cu.getGlobalForObject(this));

/**
* Records coverage for each test by way of the js debugger.
Expand Down

0 comments on commit 4fe1e8c

Please sign in to comment.