all async tests passing

pull/18062/merge
Rich Harris 4 months ago
parent 6a96f64c5c
commit 0d95919978

@ -512,6 +512,7 @@ export class Batch {
// Don't save errors in `batch_values`, or they won't be thrown in `runtime.js#get`
if ((derived.f & ERROR_VALUE) === 0) {
this.current.set(derived, value);
batch_values?.set(derived, value);
}
@ -848,7 +849,7 @@ export class Batch {
// console.group('batch_values');
// for (const [value, v] of batch_values) {
// console.log(this.current.has(value), value.label, v);
// console.log(this.current.has(value), value.label, snapshot(v, true));
// }
// console.groupEnd();
@ -865,7 +866,7 @@ export class Batch {
// console.group('batch_wvs');
// for (const [value, wv] of batch_wvs) {
// console.log(this.wvs.has(value), wv, value.label ?? value.v);
// console.log(this.wvs.has(value), wv, value.label ?? snapshot(value.v, true));
// }
// console.groupEnd();

@ -1,8 +1,10 @@
/** @import { Equals } from '#client' */
import { batch_values } from './batch.js';
/** @type {Equals} */
export function equals(value) {
return value === this.v;
return value === (batch_values?.get(this) ?? this.v);
}
/**

Loading…
Cancel
Save