| Index: src/runtime.cc
|
| diff --git a/src/runtime.cc b/src/runtime.cc
|
| index eb5552e3ecb7423dc29553926c76ad233fc04954..4a5b6ea7bb167d60a2e9c51bbbb184883d4109a4 100644
|
| --- a/src/runtime.cc
|
| +++ b/src/runtime.cc
|
| @@ -3138,6 +3138,16 @@ RUNTIME_FUNCTION(MaybeObject*, Runtime_ThrowGeneratorStateError) {
|
| }
|
|
|
|
|
| +RUNTIME_FUNCTION(MaybeObject*, Runtime_ThrowGeneratorStartError) {
|
| + HandleScope scope(isolate);
|
| + ASSERT(args.length() == 0);
|
| + Vector< Handle<Object> > argv = HandleVector<Object>(NULL, 0);
|
| + Handle<Object> error =
|
| + isolate->factory()->NewTypeError("generator_start", argv);
|
| + return isolate->Throw(*error);
|
| +}
|
| +
|
| +
|
| RUNTIME_FUNCTION(MaybeObject*, Runtime_ObjectFreeze) {
|
| HandleScope scope(isolate);
|
| ASSERT(args.length() == 1);
|
|
|