| Index: src/contexts.h
|
| diff --git a/src/contexts.h b/src/contexts.h
|
| index 8e6d2e573bc061ed8648a443501a5feb4c3045d5..a3ac8239d76d04a947183a5af1aa73f479102e11 100644
|
| --- a/src/contexts.h
|
| +++ b/src/contexts.h
|
| @@ -309,6 +309,7 @@ enum ContextLookupFlags {
|
| V(STRICT_FUNCTION_WITHOUT_PROTOTYPE_MAP_INDEX, Map, \
|
| strict_function_without_prototype_map) \
|
| V(STRICT_GENERATOR_FUNCTION_MAP_INDEX, Map, strict_generator_function_map) \
|
| + V(CLASS_FUNCTION_MAP_INDEX, Map, class_function_map) \
|
| V(STRING_FUNCTION_INDEX, JSFunction, string_function) \
|
| V(STRING_FUNCTION_PROTOTYPE_MAP_INDEX, Map, string_function_prototype_map) \
|
| V(SYMBOL_FUNCTION_INDEX, JSFunction, symbol_function) \
|
| @@ -601,8 +602,10 @@ class Context: public FixedArray {
|
| }
|
|
|
| if (IsClassConstructor(kind)) {
|
| - // Use strict function map (no own "caller" / "arguments")
|
| - return STRICT_FUNCTION_MAP_INDEX;
|
| + // Like the strict function map, but with no 'name' accessor. 'name'
|
| + // needs to be the last property and it is added during instantiation,
|
| + // in case a static property with the same name exists"
|
| + return CLASS_FUNCTION_MAP_INDEX;
|
| }
|
|
|
| if (IsArrowFunction(kind) || IsConciseMethod(kind) ||
|
|
|