Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • S sweet-core
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 62
    • Issues 62
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 4
    • Merge requests 4
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • sweet-js
  • sweet-core
  • Issues
  • #207
Closed
Open
Issue created Jan 18, 2014 by Administrator@rootContributor

Hygenic Renaming Failure (const + missing semicolons + readableNames)

Created by: Havvy

Input:

let describe = macro {
    rule { $name:lit { $body ... } } => {
        describe($name, function () {
            $body ...
        });
    }
}

const binding = {}
const binding_fails = {}

describe 'failure' {
    binding_fails;
}

undescribe('failure', function () {
    binding_fails;
});

Output:

const binding = {};
const binding_fails = {};
describe('failure', function () {
    binding_fails$280;
});
undescribe('failure', function () {
    binding_fails;
});

Crucial note: Adding semicolons to the end of the const statements 'fixes' this issue.

Problem is not reproducible with readable names off.

Assignee
Assign to
Time tracking