Skip to content

Commit

Permalink
More String#repeat polyfill
Browse files Browse the repository at this point in the history
  • Loading branch information
stash-sfdc committed Sep 22, 2017
1 parent 2a4775c commit 8614dbf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/date_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
var vows = require('vows');
var assert = require('assert');
var tough = require('../lib/cookie');
require('string.prototype.repeat'); // polyfill

function dateVows(table) {
var theVows = {};
Expand All @@ -52,7 +53,7 @@ function dateVows(table) {
return {"date parsing": theVows};
}

var TOO_MANY_XS = 'x'.repeat(65535);
var TOO_MANY_XS = String("x").repeat(65535);

vows
.describe('Date')
Expand Down

0 comments on commit 8614dbf

Please sign in to comment.