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>
This commit is contained in:
Kenta Moriuchi 2024-09-06 19:52:59 +09:00 committed by GitHub
parent 8ef08f1d29
commit f0a3d20642
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 144 additions and 20 deletions

View file

@ -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();
},