File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -932,7 +932,7 @@ function buildValue (location, input) {
932
932
switch ( type ) {
933
933
case 'string' : {
934
934
code += `
935
- ${ statement } (${ input } === null || typeof ${ input } === "${ type } " || ${ input } instanceof RegExp || (typeof ${ input } === "object" && Object.hasOwnProperty.call(${ input } , "toString")))
935
+ ${ statement } (${ input } === null || typeof ${ input } === "${ type } " || ${ input } instanceof RegExp || (typeof ${ input } === "object" && Object.prototype. hasOwnProperty.call(${ input } , "toString")))
936
936
${ nestedResult }
937
937
`
938
938
break
@@ -1018,7 +1018,10 @@ function extendDateTimeType (schema) {
1018
1018
function isEmpty ( schema ) {
1019
1019
// eslint-disable-next-line
1020
1020
for ( var key in schema ) {
1021
- if ( schema . hasOwnProperty ( key ) && schema [ key ] !== undefined ) {
1021
+ if (
1022
+ Object . prototype . hasOwnProperty . call ( schema , key ) &&
1023
+ schema [ key ] !== undefined
1024
+ ) {
1022
1025
return false
1023
1026
}
1024
1027
}
You can’t perform that action at this time.
0 commit comments