| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 9c6b078 commit 9c59abe
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,6 +5,7 @@ const { | |||
| 5 | 5 | JSONParse, | |
| 6 | 6 | JSONStringify, | |
| 7 | 7 | ObjectDefineProperties, | |
| 8 | + ObjectGetOwnPropertyDescriptor, | ||
| 8 | 9 | SafeSet, | |
| 9 | 10 | SymbolToStringTag, | |
| 10 | 11 | StringPrototypeRepeat, | |
@@ -687,7 +688,11 @@ async function decrypt(algorithm, key, data) { | |||
| 687 | 688 | class SubtleCrypto {} | |
| 688 | 689 | const subtle = new SubtleCrypto(); | |
| 689 | 690 | ||
| 690 | - class Crypto {} | ||
| 691 | + class Crypto { | ||
| 692 | + get subtle() { | ||
| 693 | + return subtle; | ||
| 694 | + } | ||
| 695 | + } | ||
| 691 | 696 | const crypto = new Crypto(); | |
| 692 | 697 | ||
| 693 | 698 | ObjectDefineProperties( | |
@@ -699,9 +704,8 @@ ObjectDefineProperties( | |||
| 699 | 704 | value: 'Crypto', | |
| 700 | 705 | }, | |
| 701 | 706 | subtle: { | |
| 707 | + ...ObjectGetOwnPropertyDescriptor(Crypto.prototype, 'subtle'), | ||
| 702 | 708 | enumerable: true, | |
| 703 | - configurable: false, | ||
| 704 | - value: subtle, | ||
| 705 | 709 | }, | |
| 706 | 710 | getRandomValues: { | |
| 707 | 711 | enumerable: true, | |
| Back | FazBrowse Home | New Git URL |
0 commit comments