babel-source 5.2.17 → 5.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1080,7 +1080,6 @@ var $ = require('./$')
1080
1080
  , A = []
1081
1081
  , _slice = A.slice
1082
1082
  , _join = A.join
1083
- , indexOf = A.indexOf
1084
1083
  , classof = cof.classof
1085
1084
  , has = $.has
1086
1085
  , defineProperty = $.setDesc
@@ -1173,7 +1172,7 @@ function createGetKeys(names, length){
1173
1172
  for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key);
1174
1173
  // Don't enum bug & hidden keys
1175
1174
  while(length > i)if(has(O, key = names[i++])){
1176
- ~indexOf.call(result, key) || result.push(key);
1175
+ ~$indexOf(result, key) || result.push(key);
1177
1176
  }
1178
1177
  return result;
1179
1178
  };
@@ -1324,7 +1323,7 @@ $def($def.P, 'Array', {
1324
1323
  // 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue])
1325
1324
  reduceRight: createArrayReduce(true),
1326
1325
  // 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])
1327
- indexOf: indexOf = indexOf || function indexOf(el /*, fromIndex = 0 */){
1326
+ indexOf: function indexOf(el /*, fromIndex = 0 */){
1328
1327
  return $indexOf(this, el, arguments[1]);
1329
1328
  },
1330
1329
  // 22.1.3.14 / 15.4.4.15 Array.prototype.lastIndexOf(searchElement [, fromIndex])
@@ -1655,14 +1654,14 @@ $def($def.S, 'Math', {
1655
1654
  , len1 = arguments.length
1656
1655
  , len2 = len1
1657
1656
  , args = Array(len1)
1658
- , larg = -Infinity
1657
+ , larg = 0
1659
1658
  , arg;
1660
1659
  while(len1--){
1661
- arg = args[len1] = +arguments[len1];
1662
- if(arg == Infinity || arg == -Infinity)return Infinity;
1660
+ arg = args[len1] = abs(arguments[len1]);
1661
+ if(arg == Infinity)return Infinity;
1663
1662
  if(arg > larg)larg = arg;
1664
1663
  }
1665
- larg = arg || 1;
1664
+ larg = larg || 1;
1666
1665
  while(len2--)sum += pow(args[len2] / larg, 2);
1667
1666
  return larg * sqrt(sum);
1668
1667
  },
@@ -1845,11 +1844,17 @@ wrapObjectMethod('getOwnPropertyNames');
1845
1844
  // 19.1.3.6 Object.prototype.toString()
1846
1845
  var $ = require('./$')
1847
1846
  , cof = require('./$.cof')
1847
+ , src = String({}.toString)
1848
1848
  , tmp = {};
1849
- tmp[require('./$.wks')('toStringTag')] = 'z';
1850
- if($.FW && cof(tmp) != 'z')$.hide(Object.prototype, 'toString', function toString(){
1849
+ function toString(){
1851
1850
  return '[object ' + cof.classof(this) + ']';
1852
- });
1851
+ }
1852
+ // lodash uses String(Object.prototype.toString) in isNative
1853
+ toString.toString = function(){
1854
+ return src;
1855
+ };
1856
+ tmp[require('./$.wks')('toStringTag')] = 'z';
1857
+ if($.FW && cof(tmp) != 'z')$.hide(Object.prototype, 'toString', toString);
1853
1858
  },{"./$":22,"./$.cof":6,"./$.wks":36}],57:[function(require,module,exports){
1854
1859
  'use strict';
1855
1860
  var $ = require('./$')
data/lib/babel/source.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Babel
2
2
  module Source
3
- VERSION = "5.2.17"
4
- DATE = Time.at(1431025967)
3
+ VERSION = "5.3.0"
4
+ DATE = Time.at(1431472394)
5
5
  PATH = File.expand_path("../..", __FILE__)
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: babel-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.17
4
+ version: 5.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian McKenzie
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-07 00:00:00.000000000 Z
11
+ date: 2015-05-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: sebmck@gmail.com