summaryrefslogtreecommitdiff
path: root/runtime/js
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/js')
-rw-r--r--runtime/js/99_main.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index d2a28838a..ccc61036a 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -489,6 +489,10 @@ function bootstrapMainRuntime(runtimeOptions) {
}
ObjectDefineProperties(globalThis, mainRuntimeGlobalProperties);
ObjectDefineProperties(globalThis, {
+ // TODO(bartlomieju): in the future we might want to change the
+ // behavior of setting `name` to actually update the process name.
+ // Empty string matches what browsers do.
+ name: util.writable(""),
close: util.writable(windowClose),
closed: util.getterOnly(() => windowIsClosing),
});