fixing regression I introduced when jslinting symbol

This commit is contained in:
Danny Yoo 2011-08-07 21:56:12 -04:00
parent d6cf8236e2
commit b9a0801f33

View File

@ -20,7 +20,7 @@
// makeInstance: string -> Symbol.
Symbol.makeInstance = function (val) {
// To ensure that we can eq? symbols with equal values.
if (!(val.hasOwnProperty(symbolCache))) {
if (!(symbolCache.hasOwnProperty(val))) {
symbolCache[val] = new Symbol(val);
}
return symbolCache[val];