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

Side by Side Diff: src/mirror-debugger.js

Issue 262533009: Revert "Trigger exception debug event for promises at the throw site." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/isolate.cc ('k') | src/promise.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2012 the V8 project authors. All rights reserved. 1 // Copyright 2006-2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Handle id counters. 5 // Handle id counters.
6 var next_handle_ = 0; 6 var next_handle_ = 0;
7 var next_transient_handle_ = -1; 7 var next_transient_handle_ = -1;
8 8
9 // Mirror cache. 9 // Mirror cache.
10 var mirror_cache_ = []; 10 var mirror_cache_ = [];
(...skipping 1168 matching lines...) Expand 10 before | Expand all | Expand 10 after
1179 * @constructor 1179 * @constructor
1180 * @extends Mirror 1180 * @extends Mirror
1181 */ 1181 */
1182 function PromiseMirror(value) { 1182 function PromiseMirror(value) {
1183 %_CallFunction(this, value, PROMISE_TYPE, ObjectMirror); 1183 %_CallFunction(this, value, PROMISE_TYPE, ObjectMirror);
1184 } 1184 }
1185 inherits(PromiseMirror, ObjectMirror); 1185 inherits(PromiseMirror, ObjectMirror);
1186 1186
1187 1187
1188 PromiseMirror.prototype.status = function() { 1188 PromiseMirror.prototype.status = function() {
1189 var status = builtins.GetPromiseStatus(this.value_); 1189 var status = %GetPromiseStatus(this.value_);
1190 if (status == 0) return "pending"; 1190 if (status == 0) return "pending";
1191 if (status == 1) return "resolved"; 1191 if (status == 1) return "resolved";
1192 return "rejected"; 1192 return "rejected";
1193 }; 1193 };
1194 1194
1195 1195
1196 PromiseMirror.prototype.promiseValue = function() { 1196 PromiseMirror.prototype.promiseValue = function() {
1197 return builtins.GetPromiseValue(this.value_); 1197 return %GetPromiseValue(this.value_);
1198 }; 1198 };
1199 1199
1200 1200
1201 /** 1201 /**
1202 * Base mirror object for properties. 1202 * Base mirror object for properties.
1203 * @param {ObjectMirror} mirror The mirror object having this property 1203 * @param {ObjectMirror} mirror The mirror object having this property
1204 * @param {string} name The name of the property 1204 * @param {string} name The name of the property
1205 * @param {Array} details Details about the property 1205 * @param {Array} details Details about the property
1206 * @constructor 1206 * @constructor
1207 * @extends Mirror 1207 * @extends Mirror
(...skipping 1508 matching lines...) Expand 10 before | Expand all | Expand 10 after
2716 } 2716 }
2717 if (!NUMBER_IS_FINITE(value)) { 2717 if (!NUMBER_IS_FINITE(value)) {
2718 if (value > 0) { 2718 if (value > 0) {
2719 return 'Infinity'; 2719 return 'Infinity';
2720 } else { 2720 } else {
2721 return '-Infinity'; 2721 return '-Infinity';
2722 } 2722 }
2723 } 2723 }
2724 return value; 2724 return value;
2725 } 2725 }
OLDNEW
« no previous file with comments | « src/isolate.cc ('k') | src/promise.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698