Adding v0.3.0 changelog.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Adsooi 2022-10-28 16:36:18 +02:00
parent 3a36e41738
commit 6307855b87
Signed by: Ad5001
GPG key ID: 7251B1AF90B960F9
6 changed files with 165 additions and 3 deletions

View file

@ -212,7 +212,9 @@ function evaluate(tokens, expr, values) {
}
} else if (type === IVAR) {
// Check for variable value
if (item.value in expr.functions) {
if (/^__proto__|prototype|constructor$/.test(item.value)) {
throw new Error('WARNING: Prototype access detected and denied. If you downloaded this file from the internet, this file might be a virus.');
} else if (item.value in expr.functions) {
nstack.push(expr.functions[item.value]);
} else if (item.value in expr.unaryOps && expr.parser.isOperatorEnabled(item.value)) {
nstack.push(expr.unaryOps[item.value]);