summaryrefslogtreecommitdiff
path: root/jstests/core/numberlong2.js
diff options
context:
space:
mode:
authorWaley Chen <waleycz@gmail.com>2016-02-12 17:06:28 -0500
committerWaley Chen <waleycz@gmail.com>2016-02-15 18:15:09 -0500
commite99fdcb0f869f475d688fa42ba7e9e9b88a631bb (patch)
treea0af04770205d3e5d53e0893f1a647582f57f714 /jstests/core/numberlong2.js
parent04bf132fbc13fdf26fb90bae493b6a49d17994bc (diff)
downloadmongo-e99fdcb0f869f475d688fa42ba7e9e9b88a631bb.tar.gz
SERVER-22461 Crash in mozjs code with invalid NumberLong object
Diffstat (limited to 'jstests/core/numberlong2.js')
-rw-r--r--jstests/core/numberlong2.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/jstests/core/numberlong2.js b/jstests/core/numberlong2.js
index 5d7529a9e21..c730345f307 100644
--- a/jstests/core/numberlong2.js
+++ b/jstests/core/numberlong2.js
@@ -12,11 +12,11 @@ function chk(longNum) {
assert.eq(longNum, t.find({}, { _id: 0, x: 1 }).hint({ x: 1 }).next().x);
}
-chk( NumberLong("1123539983311657217") );
+chk(NumberLong("1123539983311657217"));
chk(NumberLong("-1123539983311657217"));
- chk(NumberLong("4503599627370495"));
- chk(NumberLong("4503599627370496"));
- chk(NumberLong("4503599627370497"));
+chk(NumberLong("4503599627370495"));
+chk(NumberLong("4503599627370496"));
+chk(NumberLong("4503599627370497"));
t.remove({});