Index: tools/telemetry/third_party/gsutilz/third_party/protorpc/experimental/javascript/closure/debug/error.js |
diff --git a/chrome/third_party/chromevox/third_party/closure-library/closure/goog/debug/error.js b/tools/telemetry/third_party/gsutilz/third_party/protorpc/experimental/javascript/closure/debug/error.js |
similarity index 83% |
copy from chrome/third_party/chromevox/third_party/closure-library/closure/goog/debug/error.js |
copy to tools/telemetry/third_party/gsutilz/third_party/protorpc/experimental/javascript/closure/debug/error.js |
index 6fed470018e213995a3e7e97886605521186c63b..4ed20f70e333cc455e8f8f943feed393a505a54b 100644 |
--- a/chrome/third_party/chromevox/third_party/closure-library/closure/goog/debug/error.js |
+++ b/tools/telemetry/third_party/gsutilz/third_party/protorpc/experimental/javascript/closure/debug/error.js |
@@ -33,15 +33,8 @@ goog.provide('goog.debug.Error'); |
*/ |
goog.debug.Error = function(opt_msg) { |
- // Attempt to ensure there is a stack trace. |
- if (Error.captureStackTrace) { |
- Error.captureStackTrace(this, goog.debug.Error); |
- } else { |
- var stack = new Error().stack; |
- if (stack) { |
- this.stack = stack; |
- } |
- } |
+ // Ensure there is a stack trace. |
+ this.stack = new Error().stack || ''; |
if (opt_msg) { |
this.message = String(opt_msg); |
@@ -50,5 +43,5 @@ goog.debug.Error = function(opt_msg) { |
goog.inherits(goog.debug.Error, Error); |
-/** @override */ |
+/** @inheritDoc */ |
goog.debug.Error.prototype.name = 'CustomError'; |