| Index: src/compiler/ast-graph-builder.cc
|
| diff --git a/src/compiler/ast-graph-builder.cc b/src/compiler/ast-graph-builder.cc
|
| index d1103d7c907b662d0092f98d9fcb80bde29ebdad..a200c701935333f40953e1728b4835205054b48d 100644
|
| --- a/src/compiler/ast-graph-builder.cc
|
| +++ b/src/compiler/ast-graph-builder.cc
|
| @@ -563,6 +563,11 @@ void AstGraphBuilder::CreateGraphBody(bool stack_check) {
|
| Variable* rest_parameter = scope->rest_parameter(&rest_index);
|
| BuildRestArgumentsArray(rest_parameter, rest_index);
|
|
|
| + if (scope->this_function_var() != nullptr ||
|
| + scope->new_target_var() != nullptr) {
|
| + SetStackOverflow();
|
| + }
|
| +
|
| // Emit tracing call if requested to do so.
|
| if (FLAG_trace) {
|
| NewNode(javascript()->CallRuntime(Runtime::kTraceEnter, 0));
|
|
|