babel-source 5.6.0 → 5.6.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +8 -8
  2. data/lib/babel.js +10 -4
  3. data/lib/babel/source.rb +2 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YWRmYWFhYTkwYzk2YmU5Yzk0OTk5ZGVkM2JiYmZjYWU1MTE3YTljMw==
4
+ M2ZlMWFmOWFlN2I3ZjM2ODg3ZjNlNzA3ZWZhN2UzNDdmYzVmMjdiOQ==
5
5
  data.tar.gz: !binary |-
6
- YzUzZmEwNmY1NDdiMGYyMTc0MzcxMjBkMmNkYzU1MWMzNmVhMzIyNQ==
6
+ ZmIwODI5YzlkYjhiNDFhZWE2MGZmNjU2MDU3ZGQ0MGIxYjg5MDZmNQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MGU5NmVkYThjZmQ5MjRiYTI3ZDJmMmY2YmI5NDY2NzMyOGQ3ZGE5MzZjZWE1
10
- YTA2MTk1OWY5ZDU5YzMzM2JkMjMwZDUyNGFlYWNjMTdiYWYyZjJiN2M5MzAw
11
- ZWVjNTU5MDc3NjYyMGQ1OTZkZTdkMjMwOTg0M2RhNmVhYjlhNmM=
9
+ OWU0OWFjNDZhNzQ0YzM4OGFhN2NjZjg2Y2RjODI4YTU2YmQyZTJhYzBkNjQw
10
+ NmEyMjZiYmNlZWY4MTg5YzM1MjU3ODU2MjYyZmI3NmVjOGRjMjdhMWUyNjIy
11
+ YzVhOWM5ZjFhOTFmMzBiMDU2ZjBhMTU4MzIzOGFmMjQyMzVjZjg=
12
12
  data.tar.gz: !binary |-
13
- MTBkMzNkN2JjNDU2Y2E4ZGVhZDNlOTM3YWExZmI4MzhkMWZmNDU5NGE3MzA4
14
- YjA0NmY4MjcwNTg0YWY0ZGU1NDhmZWU3OWZkMDNlMmE1MGY4Yjc1NzY2Yzc4
15
- YjcwMjlkMmNhZTgzZDA5MzZkYWYyYjc4YjdlNjVjOTU2YjUyOGQ=
13
+ MTM0YjdjYTdlM2YxZTAxZjExZGIxMjdlYjYyYWE0NDQxYWY2ZGU3MDgwMWRm
14
+ NWI1NTRmZjNiNWZkMTA0NzcxOWVkYmY2NGM4Y2RhNGY4ZDQ0MzIwNTA5MzRk
15
+ ODI5ZGYxZjZiZjhiODYwMzIxY2M5ZTUxNmI5MWU4OTUyMTM1Yzc=
data/lib/babel.js CHANGED
@@ -10669,7 +10669,13 @@ var ReplaceSupers = (function () {
10669
10669
 
10670
10670
  if (methodName.name === "constructor") {
10671
10671
  // constructor() { super(); }
10672
- return t.memberExpression(superRef, t.identifier("call"));
10672
+ if (parent.arguments.length === 2 && t.isSpreadElement(parent.arguments[1]) && t.isIdentifier(parent.arguments[1].argument, { name: "arguments" })) {
10673
+ // special case single arguments spread
10674
+ parent.arguments[1] = parent.arguments[1].argument;
10675
+ return t.memberExpression(superRef, t.identifier("apply"));
10676
+ } else {
10677
+ return t.memberExpression(superRef, t.identifier("call"));
10678
+ }
10673
10679
  } else {
10674
10680
  id = superRef;
10675
10681
 
@@ -15623,7 +15629,7 @@ var _types = require("../../../types");
15623
15629
  var t = _interopRequireWildcard(_types);
15624
15630
 
15625
15631
  function getSpreadLiteral(spread, scope) {
15626
- if (scope.hub.file.isLoose("es6.spread")) {
15632
+ if (scope.hub.file.isLoose("es6.spread") && !t.isIdentifier(spread.argument, { name: "arguments" })) {
15627
15633
  return spread.argument;
15628
15634
  } else {
15629
15635
  return scope.toArray(spread.argument, true);
@@ -62875,7 +62881,7 @@ module.exports = function (str) {
62875
62881
  module.exports={
62876
62882
  "name": "babel-core",
62877
62883
  "description": "A compiler for writing next generation JavaScript",
62878
- "version": "5.6.0",
62884
+ "version": "5.6.1",
62879
62885
  "author": "Sebastian McKenzie <sebmck@gmail.com>",
62880
62886
  "homepage": "https://babeljs.io/",
62881
62887
  "license": "MIT",
@@ -62951,7 +62957,7 @@ module.exports={
62951
62957
  "trim-right": "^1.0.0"
62952
62958
  },
62953
62959
  "devDependencies": {
62954
- "babel": "5.5.8",
62960
+ "babel": "5.5.7",
62955
62961
  "browserify": "^9.0.8",
62956
62962
  "chai": "^2.2.0",
62957
62963
  "eslint": "^0.21.2",
data/lib/babel/source.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  module Babel
2
2
  module Source
3
- VERSION = "5.6.0"
4
- DATE = Time.at(1434839751)
3
+ VERSION = "5.6.1"
4
+ DATE = Time.at(1434841513)
5
5
  PATH = File.expand_path("../..", __FILE__)
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: babel-source
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.6.0
4
+ version: 5.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian McKenzie