Skip to content

Commit

Permalink
Actually check if we're in a window
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan committed May 18, 2017
1 parent cbee70b commit d1aad58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/idlharness.js
Original file line number Diff line number Diff line change
Expand Up @@ -1004,7 +1004,7 @@ IdlInterface.prototype.test_self = function()

// OK now actually check the aliases...
var alias;
if (exposed_in(exposure_set(this, ["Window"]))) {
if (exposed_in(exposure_set(this, this.exposureSet)) && 'document' in self) {
for (alias of aliases) {
assert_true(alias in self, alias + " should exist");
assert_equals(self[alias], self[this.name], "self." + alias + " should be the same value as self." + this.name);
Expand Down

0 comments on commit d1aad58

Please sign in to comment.