| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 08bf015 commit b10fe58
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,6 +16,7 @@ const { | |||
| 16 | 16 | ObjectGetOwnPropertySymbols, | |
| 17 | 17 | ObjectGetPrototypeOf, | |
| 18 | 18 | ObjectKeys, | |
| 19 | + ObjectPrototypeHasOwnProperty, | ||
| 19 | 20 | ReflectGetOwnPropertyDescriptor, | |
| 20 | 21 | ReflectOwnKeys, | |
| 21 | 22 | RegExpPrototypeSymbolReplace, | |
@@ -536,8 +537,7 @@ ObjectDefineProperties(URLSearchParams.prototype, { | |||
| 536 | 537 | }); | |
| 537 | 538 | ||
| 538 | 539 | function isURLThis(self) { | |
| 539 | - // TODO(@anonrig): Use ObjectPrototypeHasOwnProperty to avoid prototype look | ||
| 540 | - return (self !== undefined && self !== null && self[context] !== undefined); | ||
| 540 | + return self != null && ObjectPrototypeHasOwnProperty(self, context); | ||
| 541 | 541 | } | |
| 542 | 542 | ||
| 543 | 543 | class URL { | |
| Back | FazBrowse Home | New Git URL |
0 commit comments