mirror of
https://github.com/josdejong/mathjs.git
synced 2026-01-25 15:07:57 +00:00
Merge pull request #431 from golmansax/master
Update defineProperty check
This commit is contained in:
commit
792d6bddde
@ -154,7 +154,7 @@ exports.canDefineProperty = function () {
|
||||
// test needed for broken IE8 implementation
|
||||
try {
|
||||
if (Object.defineProperty) {
|
||||
Object.defineProperty({}, 'x', {});
|
||||
Object.defineProperty({}, 'x', { get: function () {} });
|
||||
return true;
|
||||
}
|
||||
} catch (e) {}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user