diff --git a/src/core/primitives.js b/src/core/primitives.js index c3468166d..14d8016c3 100644 --- a/src/core/primitives.js +++ b/src/core/primitives.js @@ -185,11 +185,10 @@ var Ref = (function RefClosure() { toString: function Ref_toString() { // This function is hot, so we make the string as compact as possible. // |this.gen| is almost always zero, so we treat that case specially. - var str = this.num + 'R'; if (this.gen !== 0) { - str += this.gen; + return `${this.num}R${this.gen}`; } - return str; + return `${this.num}R`; }, };