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

Unified Diff: src/accessors.cc

Issue 10746002: Silence more warnings. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Woteva Created 8 years, 5 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 | src/scopes.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/accessors.cc
diff --git a/src/accessors.cc b/src/accessors.cc
index f4fefff71329289cf3a2d4d2c92e9bc775a5f51f..fcc82a15920d789200643b293aed8634a39b3daf 100644
--- a/src/accessors.cc
+++ b/src/accessors.cc
@@ -859,10 +859,10 @@ Handle<AccessorInfo> Accessors::MakeModuleExport(
info->set_all_can_write(true);
info->set_name(*name);
info->set_data(Smi::FromInt(index));
- v8::AccessorGetter getter = &ModuleGetExport;
- v8::AccessorSetter setter = &ModuleSetExport;
- info->set_getter(*v8::FromCData(getter));
- if (!(attributes & ReadOnly)) info->set_setter(*v8::FromCData(setter));
+ Handle<Foreign> getter = v8::FromCData(&ModuleGetExport);
+ Handle<Foreign> setter = v8::FromCData(&ModuleSetExport);
+ info->set_getter(*getter);
+ if (!(attributes & ReadOnly)) info->set_setter(*setter);
return info;
}
« no previous file with comments | « no previous file | src/scopes.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698