Revision: 9850
Author:   [email protected]
Date:     Mon Oct 31 08:04:27 2011
Log:      Fix unwanted implicit conversion from bool to int.

We have the following signatures:
VariableProxy* Scope::NewUnresolved(Handle<String> name,
                                    int position = RelocInfo::kNoPosition);

bool Parser::inside_with() const;

Review URL: http://codereview.chromium.org/8427001
http://code.google.com/p/v8/source/detail?r=9850

Modified:
 /branches/bleeding_edge/src/parser.cc

=======================================
--- /branches/bleeding_edge/src/parser.cc       Mon Oct 31 02:38:52 2011
+++ /branches/bleeding_edge/src/parser.cc       Mon Oct 31 08:04:27 2011
@@ -2460,7 +2460,7 @@
         // implementing stack allocated block scoped variables.
Variable* temp = top_scope_->DeclarationScope()->NewTemporary(name); VariableProxy* temp_proxy = new(zone()) VariableProxy(isolate(), temp); - VariableProxy* each = top_scope_->NewUnresolved(name, inside_with());
+        VariableProxy* each = top_scope_->NewUnresolved(name);
ForInStatement* loop = new(zone()) ForInStatement(isolate(), labels);
         Target target(&this->target_stack_, loop);

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to