summaryrefslogtreecommitdiff
path: root/runtime/js/99_main.js
diff options
context:
space:
mode:
authorKenta Moriuchi <moriken@kimamass.com>2024-09-06 19:52:59 +0900
committerGitHub <noreply@github.com>2024-09-06 12:52:59 +0200
commitf0a3d206422af3177e0f36ed22802c1ccc6f7654 (patch)
tree57ad718cc47b7b98c0bbd869d6c070adee3bf30a /runtime/js/99_main.js
parent8ef08f1d294dbe7e3771202084ecbede73ca28aa (diff)
fix(runtime): use more null proto objects again (#25040)
proceed with #23921 This PR is a preparation for https://github.com/denoland/deno_lint/pull/1307 --------- Signed-off-by: Kenta Moriuchi <moriken@kimamass.com> Co-authored-by: Luca Casonato <hello@lcas.dev>
Diffstat (limited to 'runtime/js/99_main.js')
-rw-r--r--runtime/js/99_main.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/js/99_main.js b/runtime/js/99_main.js
index d83bfbff1..2d5c96f6a 100644
--- a/runtime/js/99_main.js
+++ b/runtime/js/99_main.js
@@ -92,12 +92,14 @@ if (Symbol.metadata) {
}
ObjectDefineProperties(Symbol, {
dispose: {
+ __proto__: null,
value: SymbolDispose,
enumerable: false,
writable: false,
configurable: false,
},
metadata: {
+ __proto__: null,
value: SymbolMetadata,
enumerable: false,
writable: false,
@@ -533,6 +535,7 @@ ObjectDefineProperties(finalDenoNs, {
args: core.propGetterOnly(opArgs),
mainModule: core.propGetterOnly(() => op_main_module()),
exitCode: {
+ __proto__: null,
get() {
return os.getExitCode();
},