diff --git a/jsx-runtime/src/index.js b/jsx-runtime/src/index.js index 260d68703e..b578b9da7e 100644 --- a/jsx-runtime/src/index.js +++ b/jsx-runtime/src/index.js @@ -20,10 +20,11 @@ let vnodeId = 0; * @param {VNode['type']} type * @param {VNode['props']} props * @param {VNode['key']} [key] - * @param {string} [__self] - * @param {string} [__source] + * @param {unknown} [isStaticChildren] + * @param {unknown} [__source] + * @param {unknown} [__self] */ -function createVNode(type, props, key, __self, __source) { +function createVNode(type, props, key, isStaticChildren, __source, __self) { // We'll want to preserve `ref` in props to get rid of the need for // forwardRef components in the future, but that should happen via // a separate PR. diff --git a/jsx-runtime/test/browser/jsx-runtime.test.js b/jsx-runtime/test/browser/jsx-runtime.test.js index daf71ae3be..7fd48b896f 100644 --- a/jsx-runtime/test/browser/jsx-runtime.test.js +++ b/jsx-runtime/test/browser/jsx-runtime.test.js @@ -66,7 +66,7 @@ describe('Babel jsx/jsxDEV', () => { }); it('should set __source and __self', () => { - const vnode = jsx('div', { class: 'foo' }, 'key', 'self', 'source'); + const vnode = jsx('div', { class: 'foo' }, 'key', false, 'source', 'self'); expect(vnode.__source).to.equal('source'); expect(vnode.__self).to.equal('self'); });