release: WRNexusJS 0.2.42

This commit is contained in:
2026-07-15 18:15:22 +05:30
parent 4230de7065
commit 9070a1ef9c
55 changed files with 124 additions and 90 deletions
+30 -5
View File
@@ -1225,11 +1225,36 @@ export const REACTIVE_RUNTIME = String.raw`
tokens.push({ type: "ident", value: input.slice(s, i) });
continue;
}
var three = input.substr(i, 3);
if (three === "===" || three === "!==") { tokens.push({ type: "op", value: three }); i += 3; continue; }
var two = input.substr(i, 2);
if (["==", "!=", "<=", ">=", "&&", "||"].indexOf(two) !== -1) {
tokens.push({ type: "op", value: two });
var three = input.slice(i, i + 3);
if (
three === "===" ||
three === "!=="
) {
tokens.push({
type: "operator",
value: three,
});
i += 3;
continue;
}
var two = input.slice(i, i + 2);
if (
two === "==" ||
two === "!=" ||
two === ">=" ||
two === "<=" ||
two === "&&" ||
two === "||"
) {
tokens.push({
type: "operator",
value: two,
});
i += 2;
continue;
}