summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js')
-rw-r--r--runtime/js/99_main.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index d086a42b2..4fa10bad0 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -418,7 +418,7 @@ delete Object.prototype.__proto__;
btoa: util.writable(base64.btoa),
clearInterval: util.writable(timers.clearInterval),
clearTimeout: util.writable(timers.clearTimeout),
- console: util.writable(
+ console: util.nonEnumerable(
new Console((msg, level) => core.print(msg, level > 1)),
),
crypto: util.readOnly(crypto.crypto),
@@ -468,11 +468,6 @@ delete Object.prototype.__proto__;
GPUValidationError: util.nonEnumerable(webgpu.GPUValidationError),
};
- // The console seems to be the only one that should be writable and non-enumerable
- // thus we don't have a unique helper for it. If other properties follow the same
- // structure, it might be worth it to define a helper in `util`
- windowOrWorkerGlobalScope.console.enumerable = false;
-
const mainRuntimeGlobalProperties = {
Location: location.locationConstructorDescriptor,
location: location.locationDescriptor,