File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export type FilterConfig = {
1818}
1919
2020export function toFilterConfig ( obj : unknown ) : FilterConfig {
21- const normalized = Object . create ( null ) as FilterConfig
21+ const normalized = { __proto__ : null } as FilterConfig
2222 if ( ! isObject ( obj ) ) {
2323 return normalized
2424 }
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ export class ResultError extends Error {
4646 */
4747export function requireOk < T > ( result : CResult < T > , context : string ) : T {
4848 if ( ! result . ok ) {
49- const errorOptions = Object . create ( null ) as ResultErrorOptions
49+ const errorOptions = { __proto__ : null } as ResultErrorOptions
5050 if ( result . code !== undefined ) {
5151 errorOptions . code = result . code
5252 }
You can’t perform that action at this time.
0 commit comments