Index: src/runtime/runtime-generator.cc |
diff --git a/src/runtime/runtime-generator.cc b/src/runtime/runtime-generator.cc |
index 81c66408d363955522d998639132ba848d52dcfe..96486736e124b6fef046f0d56215bf8dcbb7265a 100644 |
--- a/src/runtime/runtime-generator.cc |
+++ b/src/runtime/runtime-generator.cc |
@@ -61,6 +61,14 @@ RUNTIME_FUNCTION(Runtime_GeneratorGetReceiver) { |
return generator->receiver(); |
} |
+RUNTIME_FUNCTION(Runtime_GeneratorGetContext) { |
+ HandleScope scope(isolate); |
+ DCHECK_EQ(1, args.length()); |
+ CONVERT_ARG_HANDLE_CHECKED(JSGeneratorObject, generator, 0); |
+ |
+ return generator->context(); |
+} |
+ |
RUNTIME_FUNCTION(Runtime_GeneratorGetInputOrDebugPos) { |
HandleScope scope(isolate); |
DCHECK_EQ(1, args.length()); |