[SERVER-9582] V8 allows DBRef() with no arguments Created: 03/May/13  Updated: 02/Aug/18  Resolved: 24/Jun/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
depends on SERVER-9878 Add safety checks to V8 C++ bindings Closed
Related
Participants:

 Description   

> DBRef()
DBRef(undefined, undefined)

See the dbRefInit function in v8_db.cpp.



 Comments   
Comment by Shaun Verch [ 24/Jun/13 ]

Fixed by SERVER-9878.

Comment by Shaun Verch [ 03/May/13 ]

Spidermonkey used to check this:

> DBRef()
Tue Mar 12 18:15:20.990 Error: DBRef takes 2 arguments -- DBRef($ref,$id) (shell):1

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