Skip to content

Commit

Permalink
commonjs: url: fix missing curly braces
Browse files Browse the repository at this point in the history
  • Loading branch information
roytam1 committed Jan 2, 2021
1 parent 21e490a commit bb287cf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions toolkit/commonjs/sdk/url.js
Expand Up @@ -152,20 +152,20 @@ function URL(url, base) {

Object.defineProperties(this, {
toString: {
value() new String(uri.spec).toString(),
value() {new String(uri.spec).toString()},
enumerable: false
},
valueOf: {
value() new String(uri.spec).valueOf(),
value() {new String(uri.spec).valueOf()},
enumerable: false
},
toSource: {
value() new String(uri.spec).toSource(),
value() {new String(uri.spec).toSource()},
enumerable: false
},
// makes more sense to flatten to string, easier to travel across JSON
toJSON: {
value() new String(uri.spec).toString(),
value() {new String(uri.spec).toString()},
enumerable: false
}
});
Expand Down

0 comments on commit bb287cf

Please sign in to comment.