Comparing version 1.0.0 to 1.0.1
@@ -40,3 +40,3 @@ "use strict"; | ||
set: function (value) { | ||
defProp(this, tag, defValue(value)); | ||
defProp(this, tag, defValue(value, { c: true, w: true })); | ||
}, | ||
@@ -43,0 +43,0 @@ configurable: true, |
{ | ||
"name": "es-symbol", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A spec-compliant as much as it could be, small, and tested ES6 Symbol implementation.", | ||
@@ -5,0 +5,0 @@ "main": "dist/symbol.js", |
17
test.js
@@ -166,2 +166,18 @@ var assert = require('assert') | ||
} | ||
}, | ||
'you can rewrite symbols in instances'() { | ||
var priv = Symbol() | ||
function X() { | ||
this[priv] = true | ||
} | ||
var x = new X() | ||
var passed = x[priv] === true | ||
x[priv] = false | ||
return passed &= x[priv] === false | ||
} | ||
@@ -189,1 +205,2 @@ } | ||
t('broken use of keyFor') | ||
t('you can rewrite symbols in instances') |
9964
275