Repository navigation
Conversation
Signed-off-by: Rodrigo Antonio Godinho da Silva <rodrigo.antonio@totvs.com.br>
|
Hi, |
Hello, for 3 reasons: 2-) When using Lib with typescript, parser._syntaxErrors, I got this error: "property '_syntaxErrors' does not exist on type" 3-) There is actually a long history of using dangling underscores to indicate “private” members of objects in JavaScript (though JavaScript doesn’t have truly private members, this convention served as a warning). |
|
The Java field name is poorly named. |
|
I can definitely do this PR with this change from _syntaxErrors to syntaxErrorsCount, but wouldn't that break the code of someone already using _syntaxErrors natively(JS)? |
|
You're right. Maybe add it as a "get" fn ? |
|
I'm sorry, but I'm not a javascript expert. Your suggestion is to do something like: But I didn't find similar construction in Parser.js |
|
Indeed you're not seeing much of this because when I started the project 15 years ago it wasn't supported. But that's the way to go nowadays for simple getters. |
|
New PR with requested changes #4261 |
Implemented getNumberOfSyntaxErrors for javascript runtime.