Commit 6f068a0 1 parent f3e71a8 commit 6f068a0 Copy full SHA for 6f068a0
File tree 1 file changed +4
-9
lines changed
1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -1124,8 +1124,6 @@ export class Processor extends CallableInstance {
1124
1124
use ( value , ...parameters ) {
1125
1125
const attachers = this . attachers
1126
1126
const namespace = this . namespace
1127
- /** @type {Record<string, unknown> | undefined } */
1128
- let settings
1129
1127
1130
1128
assertUnfrozen ( 'use' , this . frozen )
1131
1129
@@ -1143,11 +1141,6 @@ export class Processor extends CallableInstance {
1143
1141
throw new TypeError ( 'Expected usable value, not `' + value + '`' )
1144
1142
}
1145
1143
1146
- if ( settings ) {
1147
- // To do: structured clone?
1148
- namespace . settings = Object . assign ( namespace . settings || { } , settings )
1149
- }
1150
-
1151
1144
return this
1152
1145
1153
1146
/**
@@ -1184,8 +1177,10 @@ export class Processor extends CallableInstance {
1184
1177
addList ( result . plugins )
1185
1178
1186
1179
if ( result . settings ) {
1187
- // To do: structured clone?
1188
- settings = Object . assign ( settings || { } , result . settings )
1180
+ namespace . settings = {
1181
+ ...namespace . settings ,
1182
+ ...structuredClone ( result . settings )
1183
+ }
1189
1184
}
1190
1185
}
1191
1186
You can’t perform that action at this time.
0 commit comments