1export function load(url, context, next) {
2 let thenAlreadyAccessed = false;
3 return {
4 get then() {
5 if (thenAlreadyAccessed) throw new Error('must not call');
6 thenAlreadyAccessed = true;
7 return (resolve) => resolve(next(url, context));
8 }
9 };
10}
11