Permalink
Browse files

Fixed so if *any* are false the implementation limitation error is th…

…rown.
  • Loading branch information...
1 parent bef28bb commit 65c091c6340bb8a08f97fc5bec6ae058fcd5c3c1 @eligrey committed Jun 21, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 xccessors-standard.js
View
@@ -2,7 +2,7 @@
* Xccessors Standard: Cross-browser ECMAScript 5 accessors
* http://purl.eligrey.com/github/Xccessors
*
- * 2010-06-20
+ * 2010-06-21
*
* By Eli Grey, http://eligrey.com
*
@@ -55,7 +55,7 @@
// can't switch off these features in ECMAScript 3
// so throw a TypeError if any are false
- if (!(descriptor.writable || descriptor.enumerable || descriptor.configurable))
+ if (!(descriptor.writable && descriptor.enumerable && descriptor.configurable))
{
throw new TypeError(
"This implementation of Object.defineProperty does not support" +

0 comments on commit 65c091c

Please sign in to comment.