enhance unsafe evaluate (#3564)

This commit is contained in:
Alex Lam S.L
2019-11-02 03:34:32 +08:00
committed by GitHub
parent dcbf2236c7
commit 1c0defdc03
3 changed files with 52 additions and 17 deletions

View File

@@ -36,6 +36,20 @@ regexp_2: {
expect_stdout: '["PASS","pass"]'
}
regexp_properties: {
options = {
evaluate: true,
unsafe: true,
}
input: {
console.log(/abc/g.source, /abc/g.global, /abc/g.ignoreCase, /abc/g.lastIndex, /abc/g.multiline);
}
expect: {
console.log("abc", true, false, /abc/g.lastIndex, false);
}
expect_stdout: "abc true false 0 false"
}
issue_3434_1: {
options = {
evaluate: true,