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

Unified Diff: src/objects.h

Issue 607913002: Report promise reject with no handler (behind a flag). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: more comments Created 6 years, 3 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 | « src/messages.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index e2321974d3fb03c7b92fc726f3f1fa2411dc1d61..00cf8ff86615f3fd4c56dcab0d28124647e91171 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7655,6 +7655,9 @@ class JSMessageObject: public JSObject {
// [arguments]: the arguments for formatting the error message.
DECL_ACCESSORS(arguments, JSArray)
+ // [promise]: the promise (if any) associated to the error message.
+ DECL_ACCESSORS(promise, Object)
+
// [script]: the script from which the error message originated.
DECL_ACCESSORS(script, Object)
@@ -7678,7 +7681,8 @@ class JSMessageObject: public JSObject {
// Layout description.
static const int kTypeOffset = JSObject::kHeaderSize;
static const int kArgumentsOffset = kTypeOffset + kPointerSize;
- static const int kScriptOffset = kArgumentsOffset + kPointerSize;
+ static const int kPromiseOffset = kArgumentsOffset + kPointerSize;
+ static const int kScriptOffset = kPromiseOffset + kPointerSize;
static const int kStackFramesOffset = kScriptOffset + kPointerSize;
static const int kStartPositionOffset = kStackFramesOffset + kPointerSize;
static const int kEndPositionOffset = kStartPositionOffset + kPointerSize;
« no previous file with comments | « src/messages.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698