Reviewers: Michael Starzinger,

Description:
Fix warning.


[email protected]
BUG=
TEST=


Please review this at https://chromiumcodereview.appspot.com/9655025/

SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge

Affected files:
  M src/scopes.cc


Index: src/scopes.cc
diff --git a/src/scopes.cc b/src/scopes.cc
index 766e1ae5cccc7c5e42512cdaccdf2f634b1ca0aa..859cbd1ae61c8323c4f9edfb215ac1b8bfd53cc8 100644
--- a/src/scopes.cc
+++ b/src/scopes.cc
@@ -1006,7 +1006,7 @@ bool Scope::ResolveVariable(CompilationInfo* info,
       Isolate* isolate = Isolate::Current();
       Factory* factory = isolate->factory();
       Handle<JSArray> array = factory->NewJSArray(1);
-      array->SetElement(array, 0, var->name(), NONE, kStrictMode);
+      USE(JSObject::SetElement(array, 0, var->name(), NONE, kStrictMode));
       Handle<Object> result =
           factory->NewSyntaxError("module_type_error", array);
       isolate->Throw(*result, &location);


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

Reply via email to