1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-10 18:10:56 +09:00
ladybird/Libraries/LibJS/Tests/syntax/syntax-error-unary-expression-before-exponentiation.js

9 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();
});