mirror of
https://github.com/denoland/deno.git
synced 2025-08-04 10:59:13 +00:00
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:
parent
8ef08f1d29
commit
f0a3d20642
34 changed files with 144 additions and 20 deletions
|
@ -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();
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue