Use hasOwnProperty in a more robust way in JS interop. Fixes #23448 (#23573)

* Use hasOwnProperty in a more robust way in JS interop. Fixes #23448

* Update JS
This commit is contained in:
Steve Sanderson 2020-07-01 22:59:34 +01:00 committed by GitHub
parent 01de355289
commit 2cbc7a44cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -234,7 +234,7 @@ export module DotNet {
}
function findJSFunction(identifier: string): Function {
if (cachedJSFunctions.hasOwnProperty(identifier)) {
if (Object.prototype.hasOwnProperty.call(cachedJSFunctions, identifier)) {
return cachedJSFunctions[identifier];
}