Skip to content

Commit 794ad0d

Browse files
committed
refactor: additional tweaks after revert
1 parent 6a2994e commit 794ad0d

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

src/compiler/parser/index.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export function parse (
9999

100100
function closeElement (element) {
101101
if (!inVPre && !element.processed) {
102-
element = processElement(element, options, currentParent)
102+
element = processElement(element, options)
103103
}
104104
// tree management
105105
if (!stack.length && element !== root) {
@@ -377,8 +377,7 @@ function processRawAttrs (el) {
377377

378378
export function processElement (
379379
element: ASTElement,
380-
options: CompilerOptions,
381-
parent: ASTElement | undefined
380+
options: CompilerOptions
382381
) {
383382
processKey(element)
384383

@@ -391,7 +390,7 @@ export function processElement (
391390
)
392391

393392
processRef(element)
394-
processSlot(element, parent)
393+
processSlot(element)
395394
processComponent(element)
396395
for (let i = 0; i < transforms.length; i++) {
397396
element = transforms[i](element, options) || element

test/unit/features/component/component-scoped-slot.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ describe('Component scoped slot', () => {
458458
// new in 2.6, unifying all slots as functions
459459
it('non-scoped slots should also be available on $scopedSlots', () => {
460460
const vm = new Vue({
461-
template: `<foo>before <div slot="bar">{{ $slot.msg }}</div> after</foo>`,
461+
template: `<foo>before <div slot="bar" slot-scope="{ msg }">{{ msg }}</div> after</foo>`,
462462
components: {
463463
foo: {
464464
render(h) {

0 commit comments

Comments
 (0)