Skip to content

Commit 0d991fd

Browse files
committed
Ok
1 parent 4ac17a2 commit 0d991fd

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

packages/react/src/emotion-element.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const createEmotionProps = (type: React.ElementType, props: Object) => {
3131
let newProps: any = {}
3232

3333
for (let key in props) {
34-
if (hasOwn(props, key)) {
34+
if (hasOwn.call(props, key)) {
3535
newProps[key] = props[key]
3636
}
3737
}
@@ -133,7 +133,7 @@ let Emotion = /* #__PURE__ */ withEmotionCache<any, any>(
133133
const newProps = {}
134134
for (let key in props) {
135135
if (
136-
hasOwn(props, key) &&
136+
hasOwn.call(props, key) &&
137137
key !== 'css' &&
138138
key !== typePropName &&
139139
(process.env.NODE_ENV === 'production' || key !== labelPropName)

packages/react/src/jsx-dev-runtime.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function jsxDEV(
1313
source: any,
1414
self: any
1515
) {
16-
if (!hasOwn(props, 'css')) {
16+
if (!hasOwn.call(props, 'css')) {
1717
return ReactJSXRuntimeDev.jsxDEV(
1818
type,
1919
props,

packages/react/src/jsx-runtime.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import { hasOwn } from './utils'
66
export const Fragment = ReactJSXRuntime.Fragment
77

88
export function jsx(type: any, props: any, key: any) {
9-
if (!hasOwn(props, 'css')) {
9+
if (!hasOwn.call(props, 'css')) {
1010
return ReactJSXRuntime.jsx(type, props, key)
1111
}
1212

1313
return ReactJSXRuntime.jsx(Emotion, createEmotionProps(type, props), key)
1414
}
1515

1616
export function jsxs(type: any, props: any, key: any) {
17-
if (!hasOwn(props, 'css')) {
17+
if (!hasOwn.call(props, 'css')) {
1818
return ReactJSXRuntime.jsxs(type, props, key)
1919
}
2020

packages/react/src/jsx.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const jsx: typeof React.createElement = function (
1010
) {
1111
let args = arguments
1212

13-
if (props == null || !hasOwn(props, 'css')) {
13+
if (props == null || !hasOwn.call(props, 'css')) {
1414
// $FlowFixMe
1515
return React.createElement.apply(undefined, args)
1616
}

packages/react/src/utils.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
// @flow
22
export let isBrowser = typeof document !== 'undefined'
33

4-
export const hasOwn = {}.hasOwnProperty.call
4+
export const hasOwn = {}.hasOwnProperty

0 commit comments

Comments
 (0)