aboutsummaryrefslogtreecommitdiff
path: root/node_modules/es5-ext/test/string
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/es5-ext/test/string')
-rw-r--r--node_modules/es5-ext/test/string/format-method.js14
1 files changed, 8 insertions, 6 deletions
diff --git a/node_modules/es5-ext/test/string/format-method.js b/node_modules/es5-ext/test/string/format-method.js
index 69e93de63..d0c216b46 100644
--- a/node_modules/es5-ext/test/string/format-method.js
+++ b/node_modules/es5-ext/test/string/format-method.js
@@ -1,12 +1,14 @@
"use strict";
module.exports = function (t, a) {
- t = t({ a: "A",
-aa: "B",
-ab: "C",
-b: "D",
+ t = t({
+ a: "A",
+ aa: "B",
+ ab: "C",
+ b: "D",
c: function () {
- return ++this.a;
-} });
+ return ++this.a;
+ }
+ });
a(t.call({ a: 0 }, " %a%aab%abb%b\\%aa%ab%c%c "), " ABbCbD%aaC12 ");
};