Skip to content
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.

Commit

Permalink
Merge pull request #98 from lellimecnar/master
Browse files Browse the repository at this point in the history
assign origURL[i] to URL instead of itself
  • Loading branch information
inexorabletash committed Apr 5, 2016
2 parents a9dc7dc + 50a09f2 commit 1b69397
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tests/url_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,11 @@ test('URLSearchParams iterable methods', function () {
}
});

test('URL contains native static methods', function () {
ok(typeof URL.createObjectURL == 'function');
ok(typeof URL.revokeObjectURL == 'function');
});

test('Regression tests', function() {
// IE mangles the pathname when assigning to search with 'about:' URLs
var p = new URL('about:blank').searchParams;
Expand Down
2 changes: 1 addition & 1 deletion url.js
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@
if (origURL) {
for (var i in origURL) {
if (origURL.hasOwnProperty(i) && typeof origURL[i] === 'function')
global.URL[i] = origURL[i];
URL[i] = origURL[i];
}
}

Expand Down

0 comments on commit 1b69397

Please sign in to comment.