add symbol check to defineProperty helper - fixes #1010

This commit is contained in:
Sebastian McKenzie
2015-03-16 02:00:10 +11:00
parent 29d33dd31a
commit 8d3a7acbd1
13 changed files with 26 additions and 48 deletions

View File

@@ -1,7 +1,7 @@
(function (obj, key, value) {
return Object.defineProperty(obj, key, {
value: value,
enumerable: true,
enumerable: key == null || typeof Symbol == "undefined" || key.constructor !== Symbol,
configurable: true,
writable: true
});