wcandillon / xqlint

JSONiq & XQuery Quality Checker
Apache License 2.0
52 stars 22 forks source link

Wrong validation of catch's variables #88

Open dbarriguete opened 4 years ago

dbarriguete commented 4 years ago

The current version has a wrong validation of declared variables in catch(), it raises an error when you have something like follows:

catch ($error) {
        errorHandlerFunction($error)
    }

Xqlint returns:

XPST0008, "$error": undeclared variable