Skip to content

Commit

Permalink
fix: fix polyfill decorate in brave (#11728)
Browse files Browse the repository at this point in the history
  • Loading branch information
LeifXu authored Aug 8, 2024
1 parent f4e4afa commit d71c5b4
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/polyfills/runtime/transpiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ define({
__metadata(key, value) {
return ReflectMetadata.metadata(key, value)
},
__decorate(decorators, target, key, desc) {
return ReflectMetadata.decorate(decorators, target, key, desc)
},
__decorate:
typeof navigator.brave === 'undefined' ?
(decorators, target, key, desc) => {
return ReflectMetadata.decorate(decorators, target, key, desc)
}
: undefined,
}),

// reflect-metadata
Expand Down

0 comments on commit d71c5b4

Please sign in to comment.