Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / tools / gn / function_foreach.cc
index 40f3892..06a2dc1 100644 (file)
@@ -70,7 +70,7 @@ Value RunForEach(Scope* scope,
   const Value* list_value = NULL;
   const IdentifierNode* list_identifier = args_vector[1]->AsIdentifier();
   if (list_identifier) {
-    list_value = scope->GetValue(list_identifier->value().value());
+    list_value = scope->GetValue(list_identifier->value().value(), true);
     if (!list_value) {
       *err = Err(args_vector[1], "Undefined identifier.");
       return Value();