-
Notifications
You must be signed in to change notification settings - Fork 4
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
Report compilation error upon invalid JavaScript code #354
Comments
It seems like Node (and Chrome) don't enforce strict mode in this case, even though they should. class Example {
static test = {
00: '',
05: 'VIJF NA',
10: 'TIEN NA'
};
} However, both However, most libraries do not accept it, and neither does Firefox: Some solutions could be:
That last one is annoying, since that step shouldn't fail (so if it does, it should be an internal error instead). |
Enabling strict mode everywhere is not as simple as it looks, since NodeJS apparently doesn't honour the A more robust way to enforce strict mode would then be to add A check of all the latest submissions from "Scriptingtalen" didn't reveal any instance where enabling strict mode changed the result. |
FYI: Here's an example of a submission where the student enabled strict mode himself. |
Example: submission 13892016
Comment by @niknetniko:
The text was updated successfully, but these errors were encountered: