[SERVER-9583] V8 allows BinData() with no arguments Created: 03/May/13  Updated: 02/Aug/18  Resolved: 10/Jul/13

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: None
Fix Version/s: 2.5.1

Type: Task Priority: Minor - P4
Reporter: Shaun Verch Assignee: Gregory McKeon (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-9893 HexData and BinData constructors do n... Closed
Related
related to SERVER-9605 HexData(0, "000000000000000000000005"... Closed
is related to SERVER-9893 HexData and BinData constructors do n... Closed
Participants:

 Description   

> BinData()
BinData(0,"")
> new BinData()
BinData(0,"")

See the binDataInit function in v8_db.cpp.



 Comments   
Comment by auto [ 10/Jul/13 ]

Author:

{u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}

Message: SERVER-9583 Factor out dealing with prepending the new keyword in constructor test
Branch: master
https://github.com/mongodb/mongo/commit/331ca8a14dbc62cf065f3c8c6ed6ccd9a0eb9647

Comment by auto [ 10/Jul/13 ]

Author:

{u'username': u'Zarkantho', u'name': u'Shaun Verch', u'email': u'shaun.verch@10gen.com'}

Message: SERVER-9583 Disallow no argument case in BinData and check subtype in HexData
Branch: master
https://github.com/mongodb/mongo/commit/c14eb6f50cc3887160af7b2bfb2340354034967d

Comment by Shaun Verch [ 03/May/13 ]

Spidermonkey used to check this:

> BinData()
Tue Mar 12 18:16:53.444 Error: BinData takes 2 arguments -- BinData(subtype,data) (shell):1
> new BinData()
Tue Mar 12 18:16:54.636 Error: BinData takes 2 arguments -- BinData(subtype,data) (shell):1

Generated at Thu Feb 08 03:20:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.