pulumi/sdk/nodejs/runtime
Robbie McKinstry 7f389fc00a
Eliminate spurious non-prototypal use of hasOwnProperty.
Calling foo.hasOwnProperty() is potentially incorrect, because
it does not necessarily refer to the prototypal Object.hasOwnProperty
function, since that function may have been overriden. This is especially
true for closure serialization, where a user may have an object
{ "hasOwnProperty": true }, which would override the prototypal function.

This commit replaces all instances of hasOwnProperty and non-prototypal
instances of hasOwn with prototypal calls to hasOwn, which is the recommended
behavior.

See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/hasOwn#description
for more information.
2023-05-15 19:48:48 -04:00
..
closure Eliminate spurious non-prototypal use of hasOwnProperty. 2023-05-15 19:48:48 -04:00
asyncIterableUtil.ts Apply autoformat 2023-04-28 18:27:10 -04:00
config.ts Apply autoformat 2023-04-28 18:27:10 -04:00
debuggable.ts Apply autoformat 2023-04-28 18:27:10 -04:00
index.ts Apply autoformat 2023-04-28 18:27:10 -04:00
invoke.ts Eliminate unnecessary double negations. 2023-05-09 18:35:59 -04:00
mocks.ts Apply autoformat 2023-04-28 18:27:10 -04:00
resource.ts Eliminate spurious non-prototypal use of hasOwnProperty. 2023-05-15 19:48:48 -04:00
rpc.ts Eliminate spurious non-prototypal use of hasOwnProperty. 2023-05-15 19:48:48 -04:00
settings.ts Eliminate assignment statements used as expressions. 2023-05-15 19:48:47 -04:00
stack.ts Apply autoformat 2023-04-28 18:27:10 -04:00
state.ts Apply autoformat 2023-04-28 18:27:10 -04:00