Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add module-variables() and module-functions() #721

Merged
merged 2 commits into from
Jun 18, 2019
Merged

Conversation

nex3
Copy link
Contributor

@nex3 nex3 commented Jun 12, 2019

Partially addresses #554

See sass/sass-spec#1403

@nex3 nex3 requested a review from nshahan June 12, 2019 15:52
@nshahan
Copy link
Contributor

nshahan commented Jun 18, 2019

Does this travis run need attention?

@nex3
Copy link
Contributor Author

nex3 commented Jun 18, 2019

It's failing because of the issue you pointed out in the specs. I've restarted it, so it should work now.

Copy link
Contributor

@nshahan nshahan left a comment

Choose a reason for hiding this comment

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

One comment, but LGTM.


return SassMap({
for (var entry in module.variables.entries)
SassString(entry.key): entry.value
Copy link
Contributor

Choose a reason for hiding this comment

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

Any danger of exposing something you don't want to by returning this Value through the map without reboxing it in some way?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, Values are intentionally only ever normal Sass values.

@nex3 nex3 merged commit 339ebe8 into feature.use Jun 18, 2019
@nex3 nex3 deleted the new-functions branch June 18, 2019 20:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants