Skip to content

Commit

Permalink
Discarded a non-java file from the patch file and the modified_classe…
Browse files Browse the repository at this point in the history
…s file.
  • Loading branch information
jose committed Oct 5, 2018
1 parent d37bfbc commit 5d2c64f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
1 change: 0 additions & 1 deletion framework/projects/Closure/modified_classes/156.src
@@ -1,2 +1 @@
com.google.javascript.jscomp.CheckGlobalThis
com.google.javascript.jscomp.js.runtime_type_check.js
20 changes: 0 additions & 20 deletions framework/projects/Closure/patches/156.src.patch
Expand Up @@ -12,23 +12,3 @@ index 604526e6..d63c72b1 100644
return false;
}
}
diff --git a/src/com/google/javascript/jscomp/js/runtime_type_check.js b/src/com/google/javascript/jscomp/js/runtime_type_check.js
index 87c94834..fdb7c09d 100644
--- a/src/com/google/javascript/jscomp/js/runtime_type_check.js
+++ b/src/com/google/javascript/jscomp/js/runtime_type_check.js
@@ -97,13 +97,13 @@ jscomp.typecheck.prettify_ = function(expr) {
* @private
*/
jscomp.typecheck.getClassName_ = function(expr) {
- var className = void 0;
+ var className = undefined;
if (typeof expr == 'object' && expr && expr.constructor) {
className = expr.constructor.name;
if (!className) {
var funNameRe = /function (.{1,})\(/;
var m = (funNameRe).exec(expr.constructor.toString());
- className = m && m.length > 1 ? m[1] : void 0;
+ className = m && m.length > 1 ? m[1] : undefined;
}
}
return className;

0 comments on commit 5d2c64f

Please sign in to comment.