Index: src/contexts.cc |
diff --git a/src/contexts.cc b/src/contexts.cc |
index 1b495265265dd412467136a6b3b0736a28abe5c1..769693513eb2941783a313aba0e9cfdc032ca569 100644 |
--- a/src/contexts.cc |
+++ b/src/contexts.cc |
@@ -142,7 +142,7 @@ Handle<Object> Context::Lookup(Handle<String> name, |
if ((flags & FOLLOW_PROTOTYPE_CHAIN) == 0 || |
object->IsJSContextExtensionObject()) { |
maybe = JSReceiver::GetOwnPropertyAttributes(object, name); |
- } else if (context->IsWithContext()) { |
+ } else if (FLAG_harmony_unscopables && context->IsWithContext()) { |
LookupIterator it(object, name); |
maybe = UnscopableLookup(&it); |
} else { |