From d46d9a38da5affa03a5b7a1b6a2559201ee2d031 Mon Sep 17 00:00:00 2001 From: "rossberg@chromium.org" Date: Fri, 9 Mar 2012 12:08:05 +0000 Subject: [PATCH] Fix warning. R=mstarzinger@chromium.org BUG= TEST= Review URL: https://chromiumcodereview.appspot.com/9655025 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10984 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/scopes.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/scopes.cc b/src/scopes.cc index 766e1ae..859cbd1 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 array = factory->NewJSArray(1); - array->SetElement(array, 0, var->name(), NONE, kStrictMode); + USE(JSObject::SetElement(array, 0, var->name(), NONE, kStrictMode)); Handle result = factory->NewSyntaxError("module_type_error", array); isolate->Throw(*result, &location); -- 2.7.4