Index: src/code-stubs-hydrogen.cc |
diff --git a/src/code-stubs-hydrogen.cc b/src/code-stubs-hydrogen.cc |
index c679d4c3f56bca0efde13b763756b81216526777..ef3309514d67b335f9479b39d279daa186d6f9cf 100644 |
--- a/src/code-stubs-hydrogen.cc |
+++ b/src/code-stubs-hydrogen.cc |
@@ -1556,7 +1556,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()->strict_mode(), |
+ int map_index = Context::FunctionMapIndex(casted_stub()->language_mode(), |
casted_stub()->kind()); |
// Compute the function map in the current native context and set that |