pulumi/sdk/nodejs/runtime/closure
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
..
codePaths.ts Remove unncessary nullish chaining operator. 2023-05-10 12:45:01 -04:00
createClosure.ts This commit safely replaces empty interfaces with type aliases. 2023-05-11 23:10:00 -04:00
package.ts Apply autoformat 2023-04-28 18:27:10 -04:00
parseFunction.ts Eliminate spurious non-prototypal use of hasOwnProperty. 2023-05-15 19:48:48 -04:00
rewriteSuper.ts Apply autoformat 2023-04-28 18:27:10 -04:00
serializeClosure.ts Eliminate spurious non-prototypal use of hasOwnProperty. 2023-05-15 19:48:48 -04:00
utils.ts Apply autoformat 2023-04-28 18:27:10 -04:00
v8.ts Eliminate spurious non-prototypal use of hasOwnProperty. 2023-05-15 19:48:48 -04:00
v8Hooks.ts Apply autoformat 2023-04-28 18:27:10 -04:00