| Index: src/code-stubs-hydrogen.cc
|
| diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc
|
| index b7247eb6bf0bf4e78d0c90f3dc81c4365e819478..70a4f8a4faad214f29bcaf762e06ea25a487314d 100644
|
| --- a/src/code-stubs-hydrogen.cc
|
| +++ b/src/code-stubs-hydrogen.cc
|
| @@ -1295,7 +1295,7 @@ HValue* CodeStubGraphBuilder<FastNewClosureStub>::BuildCodeStub() {
|
| HInstruction* js_function = Add<HAllocate>(size, HType::JSObject(),
|
| NOT_TENURED, JS_FUNCTION_TYPE);
|
|
|
| - int map_index = Context::FunctionMapIndex(casted_stub()->language_mode(),
|
| + int map_index = Context::FunctionMapIndex(casted_stub()->strict_mode(),
|
| casted_stub()->is_generator());
|
|
|
| // Compute the function map in the current native context and set that
|
|
|