Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
getOwnPropertyDescriptor causes fatal error in IE8 #1378
Within can/construct/construct.js, this line will throw an error in IE8
This is because IE8 will only support getOwnPropertyDescriptor on DOM objects but not user defined objects.
Versions affected: 2.1.4
Additional comment: took out all js files apart from jQuery and can.custom.js to check. Can.custom.js had been built with can.Map, which includes can.Construct.
Argh, I thought I tested this in IE8. I guess the solution is to feature detect this (see https://github.com/es-shims/es5-shim/blob/master/es5-sham.js#L73)