Files
ladybird/Tests/LibJS/Runtime/syntax/syntax-error-unary-expression-before-exponentiation.js
2026-01-22 07:46:48 -05:00

10 lines
347 B
JavaScript

test("syntax error for an unary expression before exponentiation", () => {
expect(`!5 ** 2`).not.toEval();
expect(`~5 ** 2`).not.toEval();
expect(`+5 ** 2`).not.toEval();
expect(`-5 ** 2`).not.toEval();
expect(`typeof 5 ** 2`).not.toEval();
expect(`void 5 ** 2`).not.toEval();
expect(`delete 5 ** 2`).not.toEval();
});