Skip to content

Strict mode error #10

Description

@giannidhooge

Since the last update (#7) I got the following error: SyntaxError: Strict mode does not allow function declarations in a lexically nested statement. over here:

if (color.length === 7) {
function x(i) {
return parseInt(color.substring(i, i + 2), 16) / 255;
}
return [x(1), x(3), x(5)];
}

It is because strict mode doesn't allow defining a function inside a lexical block like if .

Since you don't use releases it's hard to use a previous version when using bower.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions