Chromium Code Reviews| Index: src/contexts.cc |
| diff --git a/src/contexts.cc b/src/contexts.cc |
| index aa46b4793170a41c755d3f5c8b86f4678c0ba8f8..29f8a5be039e2d833e08576e6911482604bfe228 100644 |
| --- a/src/contexts.cc |
| +++ b/src/contexts.cc |
| @@ -203,6 +203,10 @@ static void GetAttributesAndBindingFlags(VariableMode mode, |
| ? BINDING_CHECK_INITIALIZED |
| : BINDING_IS_INITIALIZED; |
| break; |
| + case IMPORT: |
| + *attributes = READ_ONLY; |
| + *binding_flags = BINDING_IS_INITIALIZED; |
|
adamk
2016/07/13 18:38:21
Shouldn't this be checking the init_flag? like the
neis
2016/07/14 10:28:23
Need to think about this.
neis
2016/07/15 08:46:32
For now, I'm adding IMPORT to the UNREACHABLE case
|
| + break; |
| case DYNAMIC: |
| case DYNAMIC_GLOBAL: |
| case DYNAMIC_LOCAL: |