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

Unified Diff: src/objects.h

Issue 139653003: Throw a TypeError when calling "next" method of a newly created generator with a value (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: Created 6 years, 11 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: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index cdf1e2455d2c0e93c829a70955d900db54c32dba..b1b7b6d2ba55715e1d21d3abe7b0221d2710ed49 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7200,7 +7200,8 @@ class JSGeneratorObject: public JSObject {
static const int kContextOffset = kFunctionOffset + kPointerSize;
static const int kReceiverOffset = kContextOffset + kPointerSize;
static const int kContinuationOffset = kReceiverOffset + kPointerSize;
- static const int kOperandStackOffset = kContinuationOffset + kPointerSize;
+ static const int kSuspendedStartOffset = kContinuationOffset + kPointerSize;
+ static const int kOperandStackOffset = kSuspendedStartOffset + kPointerSize;
static const int kStackHandlerIndexOffset =
kOperandStackOffset + kPointerSize;
static const int kSize = kStackHandlerIndexOffset + kPointerSize;

Powered by Google App Engine
This is Rietveld 408576698