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

Shifter chokes on comment containing "Y.log" #84

Open
gzip opened this issue May 29, 2013 · 0 comments
Open

Shifter chokes on comment containing "Y.log" #84

gzip opened this issue May 29, 2013 · 0 comments

Comments

@gzip
Copy link

gzip commented May 29, 2013

Started looking at this with @caridy. Create the following two files and run shifter.

build.json

{
    "name": "debug",
    "builds": {
        "module": {
            "jsfiles": [
                "./js/debug.js"
            ]
        }
    }
}

js/debug.js

YUI.add('debug', function (Y, NAME) {
    function Debugger() { }
    Debugger.prototype = {
        debug: function () {
            // using Y.log's warn level
            if (true) {
            } else {
            }
        }
    }
});

It errors out with the following:

shifter [err] compression failed
       Unexpected token punc, expected punc // line 9, pos 15

Remove or modify the comment and it's successful.

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

No branches or pull requests

1 participant