diff options
Diffstat (limited to 'extensions/renderer/module_system.cc')
-rw-r--r-- | extensions/renderer/module_system.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extensions/renderer/module_system.cc b/extensions/renderer/module_system.cc index ef96d73..f027413 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); } |