diff options
Diffstat (limited to 'platform/javascript')
-rw-r--r-- | platform/javascript/detect.py | 3 | ||||
-rw-r--r-- | platform/javascript/engine.js | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/platform/javascript/detect.py b/platform/javascript/detect.py index 7e6a1518ed..989e608716 100644 --- a/platform/javascript/detect.py +++ b/platform/javascript/detect.py @@ -65,13 +65,14 @@ def configure(env): elif (env["target"] == "release_debug"): env.Append(CCFLAGS=['-O2', '-DDEBUG_ENABLED']) - env.Append(LINKFLAGS=['-O2', '-s', 'ASSERTIONS=1']) + env.Append(LINKFLAGS=['-O2']) # retain function names at the cost of file size, for backtraces and profiling env.Append(LINKFLAGS=['--profiling-funcs']) elif (env["target"] == "debug"): env.Append(CCFLAGS=['-O1', '-D_DEBUG', '-g', '-DDEBUG_ENABLED']) env.Append(LINKFLAGS=['-O1', '-g']) + env.Append(LINKFLAGS=['-s', 'ASSERTIONS=1']) ## Compiler configuration diff --git a/platform/javascript/engine.js b/platform/javascript/engine.js index 8f22e41660..e6fb48d0d2 100644 --- a/platform/javascript/engine.js +++ b/platform/javascript/engine.js @@ -267,9 +267,9 @@ try { var testCanvas = document.createElement('canvas'); if (majorVersion === 1) { - testContext = testCanvas.getContext('webgl') || testCanvas.getContet('experimental-webgl'); + testContext = testCanvas.getContext('webgl') || testCanvas.getContext('experimental-webgl'); } else if (majorVersion === 2) { - testContext = testCanvas.getContext('webgl2') || testCanvas.getContet('experimental-webgl2'); + testContext = testCanvas.getContext('webgl2') || testCanvas.getContext('experimental-webgl2'); } } catch (e) {} return !!testContext; |