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
This commit is contained in:
parent
1767fef60b
commit
d46d9a38da
@ -1006,7 +1006,7 @@ bool Scope::ResolveVariable(CompilationInfo* info,
|
|||||||
Isolate* isolate = Isolate::Current();
|
Isolate* isolate = Isolate::Current();
|
||||||
Factory* factory = isolate->factory();
|
Factory* factory = isolate->factory();
|
||||||
Handle<JSArray> array = factory->NewJSArray(1);
|
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 =
|
Handle<Object> result =
|
||||||
factory->NewSyntaxError("module_type_error", array);
|
factory->NewSyntaxError("module_type_error", array);
|
||||||
isolate->Throw(*result, &location);
|
isolate->Throw(*result, &location);
|
||||||
|
Loading…
Reference in New Issue
Block a user