Index: extensions/renderer/module_system.cc |
diff --git a/extensions/renderer/module_system.cc b/extensions/renderer/module_system.cc |
index ef96d7360969d6df42adf5e7df1c77e90be996ed..f02741324ae3fd361d4e0fde487b6673d78f182c 100644 |
--- a/extensions/renderer/module_system.cc |
+++ b/extensions/renderer/module_system.cc |
@@ -251,12 +251,12 @@ v8::Local<v8::Value> ModuleSystem::RequireForJsInner( |
v8::Local<v8::Object> modules(v8::Local<v8::Object>::Cast(modules_value)); |
v8::Local<v8::Value> exports; |
- if (!GetProperty(v8_context, modules, module_name, &exports) || |
+ if (!GetPrivateProperty(v8_context, modules, module_name, &exports) || |
!exports->IsUndefined()) |
return handle_scope.Escape(exports); |
exports = LoadModule(*v8::String::Utf8Value(module_name)); |
- SetProperty(v8_context, modules, module_name, exports); |
+ SetPrivateProperty(v8_context, modules, module_name, exports); |
return handle_scope.Escape(exports); |
} |