Skip to content

Strict mode error #10

@giannidhooge

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.

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