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

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

Loading…
Cancel
Save