]> git.ipfire.org Git - thirdparty/moment.git/commit
Fix Duration#isValid after #add or #subtract
authorLucas Sanders <butterflyhug@google.com>
Sun, 19 Mar 2017 02:49:28 +0000 (22:49 -0400)
committerLucas Sanders <butterflyhug@google.com>
Wed, 22 Mar 2017 11:00:19 +0000 (07:00 -0400)
commitfdde971ccf9ac81724c9653c30d81aa1043ee87b
tree36c773385020f486b98ec218cddd7bbdaee3572f
parenteaad7760863df04d6611d8fa37125611d9b7989e
Fix Duration#isValid after #add or #subtract

Also make the Duration#add and Duration#subtract implementations
internally immutable (so we don't need to wrap them for the
prototype).
src/lib/duration/add-subtract.js
src/lib/duration/prototype.js
src/test/moment/duration_invalid.js