mirror of
https://github.com/mongodb/mongo.git
synced 2024-11-24 16:46:00 +01:00
11 lines
338 B
JavaScript
11 lines
338 B
JavaScript
/**
|
|
* Test that verifies the javascript integration can handle large string exception messages.
|
|
*/
|
|
var len = 65 * 1024 * 1024;
|
|
var str = new Array(len + 1).join('b');
|
|
|
|
// We expect to successfully throw and catch this large exception message.
|
|
// We do not want the mongo shell to terminate.
|
|
assert.throws(function() {
|
|
throw str;
|
|
}); |