lukewagner / polyfill-prototype-1

Experimental WebAssembly polyfill library and tools
Apache License 2.0
241 stars 42 forks source link

Fix use of hasOwnProperty #16

Closed ckknight closed 8 years ago

ckknight commented 9 years ago

Object.hasOwnProperty(obj, key) is not a shortcut for obj.hasOwnProperty(key). To see, Object.hasOwnProperty({ x: true }, 'x').

lukewagner commented 8 years ago

Hah, good catch!