Skip to content
This repository has been archived by the owner on May 19, 2018. It is now read-only.

Disallow SpreadElement inside dynamic import #529

Merged
merged 2 commits into from May 17, 2017
Merged

Disallow SpreadElement inside dynamic import #529

merged 2 commits into from May 17, 2017

Conversation

existentialism
Copy link
Member

Q A
Bug fix? yes
Breaking change? no
New feature? no
Deprecations? no
Spec compliancy? yes
Tests added/pass? yes
Fixed tickets Fixes #527
License MIT

@codecov
Copy link

codecov bot commented May 17, 2017

Codecov Report

Merging #529 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #529      +/-   ##
==========================================
+ Coverage   98.27%   98.27%   +<.01%     
==========================================
  Files          22       22              
  Lines        3531     3535       +4     
  Branches      980      982       +2     
==========================================
+ Hits         3470     3474       +4     
  Misses         22       22              
  Partials       39       39
Flag Coverage Δ
#babel 81.01% <33.33%> (-0.04%) ⬇️
#babylon 97.11% <100%> (ø) ⬆️
Impacted Files Coverage Δ
src/parser/expression.js 97.4% <100%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b08fdf8...d75483d. Read the comment docs.

}

const importArg = node.arguments[0];
if (importArg && importArg.type === "SpreadElement") {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe use ... instead of SpreadElement and tt.ellipsis

@hzoo
Copy link
Member

hzoo commented May 17, 2017

cc @domenic
@kesne

@hzoo hzoo merged commit dcef401 into master May 17, 2017
@existentialism existentialism deleted the issue527 branch May 17, 2017 16:09
@hzoo hzoo added Tag: Bug Fix and removed i: bug labels May 22, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dynamicImport + spread
2 participants