Index: extensions/renderer/module_system.cc |
diff --git a/extensions/renderer/module_system.cc b/extensions/renderer/module_system.cc |
index 692939e2d57082b7ff655214788358e705138f77..4ff9b5c5f5181d3a7b53ebf50a4681b8a7ceb313 100644 |
--- a/extensions/renderer/module_system.cc |
+++ b/extensions/renderer/module_system.cc |
@@ -615,6 +615,10 @@ void ModuleSystem::Private(const v8::FunctionCallbackInfo<v8::Value>& args) { |
ToV8StringUnsafe(GetIsolate(), "Failed to create privates")); |
return; |
} |
+ v8::Maybe<bool> maybe = |
+ privates.As<v8::Object>()->SetPrototype(context()->v8_context(), |
+ v8::Null(args.GetIsolate())); |
+ CHECK(maybe.IsJust() && maybe.FromJust()); |
SetPrivate(obj, "privates", privates); |
} |
args.GetReturnValue().Set(privates); |