Skip to content

Commit

Permalink
fix goober for vitest
Browse files Browse the repository at this point in the history
  • Loading branch information
hpinkos committed Aug 29, 2024
1 parent 7f199d3 commit 32915ac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { getSheet } from './core/get-sheet';
* @param {String|Object|Function} val
*/
function css(val) {
let ctx = this || {};
let ctx = Object.isExtensible(this) ? this : {};;
let _val = val.call ? val(ctx.p) : val;

return hash(
Expand Down
2 changes: 1 addition & 1 deletion src/styled.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function setup(pragma, prefix, theme, forwardProps) {
* @param {function} forwardRef
*/
function styled(tag, forwardRef) {
let _ctx = this || {};
let _ctx = Object.isExtensible(this) ? this : {};

return function wrapper() {
let _args = arguments;
Expand Down

0 comments on commit 32915ac

Please sign in to comment.