Skip to content

Commit

Permalink
Merge pull request web-platform-tests#131 from w3c/jgraham/worker_str…
Browse files Browse the repository at this point in the history
…uct_clone

Set correct this value in worker structured clone function; r=Ms2ger
  • Loading branch information
Ms2ger committed May 29, 2015
2 parents 44bc39e + 84094aa commit 6a4af94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions testharness.js
Original file line number Diff line number Diff line change
Expand Up @@ -1448,13 +1448,13 @@ policies and contribution forms [3].
RemoteTest.prototype.structured_clone = function() {
var clone = {};
Object.keys(this).forEach(
function(key) {
(function(key) {
if (typeof(this[key]) === "object") {
clone[key] = merge({}, this[key]);
} else {
clone[key] = this[key];
}
});
}).bind(this));
clone.phases = merge({}, this.phases);
return clone;
};
Expand Down

0 comments on commit 6a4af94

Please sign in to comment.