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

ReferenceError: assignment to undeclared variable eve #32

Open
yetAnotherGithubber opened this issue Mar 16, 2017 · 1 comment
Open
Assignees

Comments

@yetAnotherGithubber
Copy link

yetAnotherGithubber commented Mar 16, 2017

In strict mode the script causes a ReferenceError: assignment to undeclared variable eve when the eve function is assigned to the (undeclared) eve variable. This is a relatively new issue, caused by the declaration of variables being terminated after the "isArray" function.

It was not present in version 0.4.2, when the list was only terminated after the (then named) functioneve declaration.

Fix seems to be as simple as changing the semicolon in line 52 to a comma:

        isArray = Array.isArray || function (ar) {
            return ar instanceof Array || objtos.call(ar) == "[object Array]";
        }, //<---
        eve = function (name, scope) {

https://github.com/adobe-webplatform/eve/blob/master/eve.js#L52
https://github.com/adobe-webplatform/eve/blob/master/eve.js#L65

@DmitryBaranovskiy DmitryBaranovskiy self-assigned this Mar 30, 2017
@rohitkr
Copy link

rohitkr commented Mar 31, 2017

Having the same issue.

rohitkr added a commit to fusioncharts/redraphael that referenced this issue Apr 7, 2017
- Instead of including `eve` from `npm package` we are keeping the file of eve in redraphael repository.
- This is because there is an open issue in `eve.js` [In strict mode the script causes a ReferenceError](adobe-webplatform/eve#32)
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

3 participants