summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/javascript/detect.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py
index 0d57f8aad1..d8e3c61798 100644
--- a/platform/javascript/detect.py
+++ b/platform/javascript/detect.py
@@ -51,8 +51,11 @@ def get_flags():
def configure(env):
if not isinstance(env["initial_memory"], int):
- print("Initial memory must be a valid integer")
- sys.exit(255)
+ try:
+ env["initial_memory"] = int(env["initial_memory"])
+ except:
+ print("Initial memory must be a valid integer")
+ sys.exit(255)
## Build type