pull/5890/head
pushkine 6 years ago
parent 2a72bfa883
commit 05c0f74ff3

@ -363,7 +363,7 @@ export default class InlineComponentWrapper extends Wrapper {
block.maintain_context = true; // TODO put this somewhere more logical
}
block.chunks.init.push(b`
function ${id}(#value) {
${callee}(${args});
@ -373,12 +373,12 @@ export default class InlineComponentWrapper extends Wrapper {
let invalidate_binding = b`
${lhs} = #value;
${renderer.invalidate(dependencies[0])};
`
if (binding.expression.node.type === "MemberExpression") {
`;
if (binding.expression.node.type === 'MemberExpression') {
invalidate_binding = b`
if ($$self.$$.not_equal(${lhs}, #value)) {
${invalidate_binding}
}`
}`;
}
const body = b`

@ -1,5 +1,5 @@
export default {
async test({ assert, component }) {
assert.equal(component.object_updates, component.primitive_updates);
},
}
};

Loading…
Cancel
Save