[SERVER-9584] V8 doesn't check for ObjectID in DBPointer() constructor Created: 03/May/13  Updated: 02/Aug/18  Resolved: 08/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
Related
Participants:

 Description   

> DBPointer("ns",0)
DBPointer("ns", 0)
> DBPointer("ns","test")
DBPointer("ns", "test")

See the dbPointerInit function in v8_db.cpp.



 Comments   
Comment by Shaun Verch [ 08/Jul/13 ]

Fixed by the refactoring in SERVER-9879.

Comment by Shaun Verch [ 03/May/13 ]

Spidermonkey used to check this:

> DBPointer("ns",0)
Tue Mar 12 18:17:52.499 Error: 2nd argument to DBPointer must be objectId (shell):1
> DBPointer("ns","test")
Tue Mar 12 18:17:55.506 Error: 2nd argument to DBPointer must be objectId (shell):1

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