From f734603255a56153cd5b813850c2a37c8dff8ce0 Mon Sep 17 00:00:00 2001 From: Alexey Andreev Date: Sun, 27 Jan 2019 23:42:05 +0300 Subject: [PATCH] JS: prevent TeaVM from generating URL function --- .../org/teavm/backend/javascript/rendering/RenderingUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/org/teavm/backend/javascript/rendering/RenderingUtil.java b/core/src/main/java/org/teavm/backend/javascript/rendering/RenderingUtil.java index 6451a781f..5e6e7c68a 100644 --- a/core/src/main/java/org/teavm/backend/javascript/rendering/RenderingUtil.java +++ b/core/src/main/java/org/teavm/backend/javascript/rendering/RenderingUtil.java @@ -29,7 +29,7 @@ public final class RenderingUtil { "catch", "class", "const", "continue", "debugger", "default", "delete", "do", "else", "export", "extends", "finally", "for", "function", "if", "import", "in", "instanceof", "new", "return", "super", "switch", "this", "throw", "try", "typeof", "var", "void", "while", "with", "yield", - "NaN", "Map", "Set", "eval", "Math", "Date", "JSON", "Intl"))); + "NaN", "Map", "Set", "eval", "Math", "Date", "JSON", "Intl", "URL"))); public static final String VARIABLE_START_CHARS = "abcdefghijklmnopqrstuvwxyz"; public static final String VARIABLE_PART_CHARS = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789$_";