We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The following structure will pass validation despite it generating invalid JS (a.0b = 1).
a.0b = 1
const {default:isValid, Validator} = require("shift-validator"); const Shift = require('shift-ast'); const ast = new Shift.AssignmentExpression({ binding: new Shift.StaticMemberAssignmentTarget({ object: new Shift.IdentifierExpression({ name: "a" }), property: "0b", // invalid property name }), expression: new Shift.LiteralNumericExpression({ value: 1 }), }); isValid(ast); // true
Shift-validator passes that structure because it's not validating StaticMemberAssignmentTargets (nor is it validating StaticPropertyNames).
StaticMemberAssignmentTarget
StaticPropertyName
The text was updated successfully, but these errors were encountered:
added validation for StaticMemberAssignmentTargets and StaticProperty…
595e05d
…Names, fixes shapesecurity#40
14ceb84
Successfully merging a pull request may close this issue.
The following structure will pass validation despite it generating invalid JS (
a.0b = 1
).Shift-validator passes that structure because it's not validating
StaticMemberAssignmentTarget
s (nor is it validatingStaticPropertyName
s).The text was updated successfully, but these errors were encountered: