 Chromium Code Reviews
 Chromium Code Reviews Issue 1418433002:
  Always give class literals a block scope  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@master
    
  
    Issue 1418433002:
  Always give class literals a block scope  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@master| Index: src/ast.h | 
| diff --git a/src/ast.h b/src/ast.h | 
| index 0c6d2138fd97aa143cd3eac94b81a5226b537b9a..f1adf528a20ea5a6c9d61408f4ef289a2765b11d 100644 | 
| --- a/src/ast.h | 
| +++ b/src/ast.h | 
| @@ -2662,7 +2662,7 @@ class ClassLiteral final : public Expression { | 
| FeedbackVectorSlotCache* cache) override; | 
| bool NeedsProxySlot() const { | 
| - return FLAG_vector_stores && scope() != NULL && | 
| + return FLAG_vector_stores && class_variable_proxy() != nullptr && | 
| class_variable_proxy()->var()->IsUnallocated(); | 
| } |