Skip to content

Commit 8614dbf

Browse files
committed
More String#repeat polyfill
1 parent 2a4775c commit 8614dbf

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

test/date_test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
var vows = require('vows');
3434
var assert = require('assert');
3535
var tough = require('../lib/cookie');
36+
require('string.prototype.repeat'); // polyfill
3637

3738
function dateVows(table) {
3839
var theVows = {};
@@ -52,7 +53,7 @@ function dateVows(table) {
5253
return {"date parsing": theVows};
5354
}
5455

55-
var TOO_MANY_XS = 'x'.repeat(65535);
56+
var TOO_MANY_XS = String("x").repeat(65535);
5657

5758
vows
5859
.describe('Date')

0 commit comments

Comments
 (0)