Index: extensions/renderer/module_system.cc |
diff --git a/extensions/renderer/module_system.cc b/extensions/renderer/module_system.cc |
index 9f708bf3eac2cc04c19cba6b6b299a58c3f504ef..dd13786f198f9267b084caa0b810259205ef1e0e 100644 |
--- a/extensions/renderer/module_system.cc |
+++ b/extensions/renderer/module_system.cc |
@@ -618,6 +618,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); |