diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2018-11-13 00:24:09 -0500 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2018-11-13 00:24:09 -0500 |
commit | 2b4757367470d8e36bc00901dac567e375796ed4 (patch) | |
tree | 72368624006c21d28228a100ee88590c7bf95e58 /assets/viz/2/goog/string/const.js | |
parent | 5ed62d23b4bbbf7717de4adfa0eaf2af19365408 (diff) |
update viz 2 to use the newest version, which has some performance improvements and is easier to read the code for. also update the description
Diffstat (limited to 'assets/viz/2/goog/string/const.js')
-rw-r--r-- | assets/viz/2/goog/string/const.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/assets/viz/2/goog/string/const.js b/assets/viz/2/goog/string/const.js index 7f919be..30bfc4e 100644 --- a/assets/viz/2/goog/string/const.js +++ b/assets/viz/2/goog/string/const.js @@ -56,7 +56,7 @@ goog.string.Const = function() { /** * A type marker used to implement additional run-time type checking. * @see goog.string.Const#unwrap - * @const + * @const {!Object} * @private */ this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_ = @@ -148,9 +148,6 @@ goog.string.Const.unwrap = function(stringConst) { * var t = goog.string.Const.from('hello' + world); * </pre> * - * TODO(xtof): Compile-time checks that this function is only called - * with compile-time constant expressions. - * * @param {string} s A constant string from which to create a Const. * @return {!goog.string.Const} A Const object initialized to stringConst. */ @@ -180,3 +177,10 @@ goog.string.Const.create__googStringSecurityPrivate_ = function(s) { s; return stringConst; }; + + +/** + * A Const instance wrapping the empty string. + * @const {!goog.string.Const} + */ +goog.string.Const.EMPTY = goog.string.Const.from(''); |