| // Copyright (C) 2024 Igalia, S.L. All rights reserved. |
| // This code is governed by the BSD license found in the LICENSE file. |
| |
| /*--- |
| esid: sec-module-namespace-exotic-objects-defineownproperty-p-desc |
| desc: _ [[DefineOwnProperty]] |
| info: | |
| [[DefineOwnProperty]] ( _P_, _Desc_ ) |
| 1. If IsSymbolLikeNamespaceKey(_P_, _O_), return ! OrdinaryDefineOwnProperty(_O_, _Desc_). |
| 1. Let _current_ be ? _O_.[[GetOwnProperty]](_P_). |
| 1. NOTE: If _O_.[[Deferred]] is *true*, the step above will ensure that the module is evaluated. |
| 1. ... |
| |
| template: trigger-on-possible-export |
| ---*/ |
| |
| //- body |
| try { |
| Object.defineProperty(ns, key, { value: "hi" }); |
| } catch (_) {} |