diff options
| author | Nayeem Rahman <nayeemrmn99@gmail.com> | 2020-08-10 21:41:51 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-10 16:41:51 -0400 |
| commit | 52c1017a74059655f9424f7ceb3f0c74dcc7f3be (patch) | |
| tree | 9ac9c438a6916b67118e5f65e62caa97d35196c0 /cli/rt/99_main.js | |
| parent | 6fcf06306ed2ea52031a97b918f1e929d7209250 (diff) | |
feat: Stabilize Deno.mainModule (#6993)
Diffstat (limited to 'cli/rt/99_main.js')
| -rw-r--r-- | cli/rt/99_main.js | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/cli/rt/99_main.js b/cli/rt/99_main.js index 873e42291..a28eef806 100644 --- a/cli/rt/99_main.js +++ b/cli/rt/99_main.js @@ -328,14 +328,10 @@ delete Object.prototype.__proto__; ppid: util.readOnly(ppid), noColor: util.readOnly(noColor), args: util.readOnly(Object.freeze(args)), + mainModule: util.getterOnly(opMainModule), }); if (unstableFlag) { - Object.defineProperty( - finalDenoNs, - "mainModule", - util.getterOnly(opMainModule), - ); Object.assign(finalDenoNs, denoNsUnstable); } |
