Skip to content

Commit

Permalink
[BUGFIX beta] ensure fmt + loc use restArgs, which prevents `argument…
Browse files Browse the repository at this point in the history
…s` from leaking around.
  • Loading branch information
stefanpenner committed Jul 8, 2015
1 parent a6e119d commit dba41cb
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/ember-runtime/lib/ext/string.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ if (Ember.EXTEND_PROTOTYPES === true || Ember.EXTEND_PROTOTYPES.String) {
@for String
@private
*/
StringPrototype.fmt = function () {
return fmt(this, arguments);
StringPrototype.fmt = function (...args) {
return fmt(this, args);
};

/**
Expand All @@ -49,8 +49,8 @@ if (Ember.EXTEND_PROTOTYPES === true || Ember.EXTEND_PROTOTYPES.String) {
@for String
@private
*/
StringPrototype.loc = function () {
return loc(this, arguments);
StringPrototype.loc = function (...args) {
return loc(this, args);
};

/**
Expand Down

0 comments on commit dba41cb

Please sign in to comment.