diff --git a/js-assembler/runtime-src/baselib-structs.js b/js-assembler/runtime-src/baselib-structs.js index 427e575..cec10f5 100644 --- a/js-assembler/runtime-src/baselib-structs.js +++ b/js-assembler/runtime-src/baselib-structs.js @@ -180,7 +180,7 @@ RawConstructor.prototype = baselib.heir(parentType.type.prototype); var theNameSymbol = - baselib.symbols.Symbol.makeInstance(theName); + baselib.symbols.makeSymbol(theName); // Set type, necessary for equality checking RawConstructor.prototype.type = RawConstructor; diff --git a/js-assembler/runtime-src/baselib-symbols.js b/js-assembler/runtime-src/baselib-symbols.js index 41d6841..b7f7a42 100644 --- a/js-assembler/runtime-src/baselib-symbols.js +++ b/js-assembler/runtime-src/baselib-symbols.js @@ -17,8 +17,9 @@ var symbolCache = {}; - // makeInstance: string -> Symbol. - Symbol.makeInstance = function (val) { + // makeSymbol: string -> Symbol. + // Interns a symbol. + var makeSymbol = function (val) { // To ensure that we can eq? symbols with equal values. if (!(symbolCache.hasOwnProperty(val))) { symbolCache[val] = new Symbol(val); @@ -77,7 +78,6 @@ var isSymbol = function (x) { return x instanceof Symbol; }; - var makeSymbol = function (s) { return Symbol.makeInstance(s); };