Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(122)

Unified Diff: src/scopes.cc

Issue 9655025: Fix warning. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698