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

Unified Diff: src/debug/mirrors.js

Issue 2206183002: Move ErrorToString to runtime (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@port-no-sideeffect-to-string
Patch Set: Rebase Created 4 years, 4 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
« no previous file with comments | « BUILD.gn ('k') | src/js/messages.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/debug/mirrors.js
diff --git a/src/debug/mirrors.js b/src/debug/mirrors.js
index 84ea9abb0e06e5d9fca978d54a903358b290688a..41c14afd5d33cd7c4aaf7bd62a8d6b064c4d0678 100644
--- a/src/debug/mirrors.js
+++ b/src/debug/mirrors.js
@@ -8,7 +8,6 @@
// ----------------------------------------------------------------------------
// Imports
-var ErrorToString;
var GlobalArray = global.Array;
var IsNaN = global.isNaN;
var JSONStringify = global.JSON.stringify;
@@ -21,7 +20,6 @@ var SetIteratorNext;
var SetValues;
utils.Import(function(from) {
- ErrorToString = from.ErrorToString;
MakeError = from.MakeError;
MapEntries = from.MapEntries;
MapIteratorNext = from.MapIteratorNext;
@@ -1255,7 +1253,7 @@ ErrorMirror.prototype.toText = function() {
// Use the same text representation as in messages.js.
var text;
try {
- text = %_Call(ErrorToString, this.value_);
+ text = %ErrorToString(this.value_);
} catch (e) {
text = '#<Error>';
}
« no previous file with comments | « BUILD.gn ('k') | src/js/messages.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698