shim.js 392 B

1234567891011121314
  1. // Partially taken from:
  2. // https://github.com/paulmillr/es6-shim/blob/master/test/string.js
  3. "use strict";
  4. module.exports = function (t, a) {
  5. var callSite = [];
  6. callSite.raw = ["The total is ", " ($", " with tax)"];
  7. a(t(callSite, "{total}", "{total * 1.01}"), "The total is {total} (${total * 1.01} with tax)");
  8. callSite.raw = [];
  9. a(t(callSite, "{total}", "{total * 1.01}"), "");
  10. };