kriskowal/es5-shim — pull request #79 by Raynos (2011-11-23 21:45:49+00:00)
Title: IE8 getOwnPropertyDescriptor

IE8 defineProperty breaks because it only works on DOM elements.

getOwnPropertyDescriptor breaks for the same reasons.

This "fixes" the issue by making the getOwnPropertyDescriptor emulation slightly more correct in IE8.

This also adds unit tests for getOwnPropertyDescriptor which will fail in Opera and IE<9 because they cannot be shimmed.

Whether we want unit tests that we cannot pass is a separate issue