From 8614dbf439d3eee71a32ff4a5ae9fad7a562d7c2 Mon Sep 17 00:00:00 2001 From: Jeremy Stashewsky Date: Fri, 22 Sep 2017 12:04:09 -0700 Subject: [PATCH] More String#repeat polyfill --- test/date_test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/date_test.js b/test/date_test.js index c52aa85a..39d0cef6 100644 --- a/test/date_test.js +++ b/test/date_test.js @@ -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 = {}; @@ -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')