rust-js / rjs

Rust JavaScript interpreter
98 stars 6 forks source link

Have AstVisitor methods return JsResult #26

Open pvginkel opened 9 years ago

pvginkel commented 9 years ago

Currently AstVisitor return (). In the local visitor, this requires us to keep Booleans for syntax errors. AstVisitor should be made to return JsResult so we can throw proper errors.