File tree Expand file tree Collapse file tree 1 file changed +30
-4
lines changed Expand file tree Collapse file tree 1 file changed +30
-4
lines changed Original file line number Diff line number Diff line change @@ -718,10 +718,36 @@ class InternalCryptoKey {
718
718
// Using symbol properties here currently instead of private
719
719
// properties because (for now) the performance penalty of
720
720
// private fields is still too high.
721
- this [ kKeyObject ] = keyObject ;
722
- this [ kAlgorithm ] = algorithm ;
723
- this [ kExtractable ] = extractable ;
724
- this [ kKeyUsages ] = keyUsages ;
721
+ ObjectDefineProperties ( this , {
722
+ [ kKeyObject ] : {
723
+ __proto__ : null ,
724
+ value : keyObject ,
725
+ enumerable : false ,
726
+ configurable : false ,
727
+ writable : false ,
728
+ } ,
729
+ [ kAlgorithm ] : {
730
+ __proto__ : null ,
731
+ value : algorithm ,
732
+ enumerable : false ,
733
+ configurable : false ,
734
+ writable : false ,
735
+ } ,
736
+ [ kExtractable ] : {
737
+ __proto__ : null ,
738
+ value : extractable ,
739
+ enumerable : false ,
740
+ configurable : false ,
741
+ writable : false ,
742
+ } ,
743
+ [ kKeyUsages ] : {
744
+ __proto__ : null ,
745
+ value : keyUsages ,
746
+ enumerable : false ,
747
+ configurable : false ,
748
+ writable : false ,
749
+ } ,
750
+ } ) ;
725
751
}
726
752
727
753
[ kClone ] ( ) {
You can’t perform that action at this time.
0 commit comments