This website requires JavaScript.
Explore
Help
Sign In
xuemingqiang
/
mongo
Watch
1
Star
0
Fork
0
You've already forked mongo
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
f5c94de1eeaa2da2c66749dc80558228ae6ad314
mongo
/
jstests
/
core
/
eval7.js
6 lines
106 B
JavaScript
Raw
Normal View
History
Unescape
Escape
handle broken eval scripts correctly
2009-05-20 15:47:48 -04:00
SERVER-22468 Format JS code with approved style in jstests/
2016-03-09 12:17:50 -05:00
assert
.
eq
(
6
,
db
.
eval
(
"5 + 1"
)
,
"A"
)
;
assert
.
throws
(
function
(
z
)
{
db
.
eval
(
"5 + function x; + 1"
)
;
}
)
;
Reference in New Issue
Copy Permalink