Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Unified Diff: tools/telemetry/third_party/gsutilz/third_party/protorpc/experimental/javascript/closure/debug/error.js

Issue 1264873003: Add gsutil/third_party to telemetry/third_party/gsutilz/third_party. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove httplib2 Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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';

Powered by Google App Engine
This is Rietveld 408576698