|
Author:
{u'username': u'vrtx', u'name': u'Ben Becker', u'email': u'ben.becker@10gen.com'}
Message: SERVER-9597: In JavaScript, only allow Mongo() to be called as a constructor
Branch: v2.4
https://github.com/mongodb/mongo/commit/f6801d07821fa460d487f43d6e2ca195d81760ee
|
|
Author:
{u'username': u'vrtx', u'name': u'Ben Becker', u'email': u'ben.becker@10gen.com'}
Message: SERVER-9597: In JavaScript, only allow Mongo() to be called as a constructor
Branch: master
https://github.com/mongodb/mongo/commit/83900ac233c2a94e0f3e6a1628cf822f9bb88425
|
|
Unrelated to getDB, in fact. Can reproduce with Mongo() (or on server with db.eval("Mongo()")). Considering new Mongo() doesn't exhibit this behavior, presumably the issue is related to the fact that the resulting object has prototypes for which "this" is incorrect.
|
|
Reproduced in current code. This is unrelated to the "admin" database.
> Mongo().getDB("anything-at-all")
|
|
#
|
# Fatal error in v8::Object::SetInternalField()
|
# Writing internal field out of bounds
|
#
|
|
Trace/breakpoint trap (core dumped)
|
|
Generated at Thu Feb 08 03:20:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.