From daa9a1fbcd58b18b4caad3bd392be3f6dd81f535 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20=28Netux=29=20Rodr=C3=ADguez?= Date: Mon, 20 Nov 2023 10:04:38 -0300 Subject: [PATCH] Use `getAstForCustomString()` when replacing Math.FUCKTON_OF_SPACES --- src/compiler/parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/parser.js b/src/compiler/parser.js index cbb60ce9..cfd48c12 100644 --- a/src/compiler/parser.js +++ b/src/compiler/parser.js @@ -917,7 +917,7 @@ function parseMember(object, member) { } else if (name === "RING_EXPLOSION_RADIUS_MULT") { return getAstForNumber(0.48); } else if (name === "FUCKTON_OF_SPACES" || name === "LOTS_OF_SPACES") { - return new Ast("__customString__", [new Ast(" ".repeat(170), [], [], "CustomStringLiteral"), getAstForNull(), getAstForNull(), getAstForNull()]); + return getAstForCustomString(" ".repeat(170)); } else { error("Unhandled member 'math."+name+"'"); }