File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -4,11 +4,10 @@ export default function(initialize) {
44 let stale = false ;
55 let value ;
66 let resolve ;
7- let dispose = initialize ( change ) ;
7+ const dispose = initialize ( change ) ;
88
99 if ( dispose != null && typeof dispose !== "function" ) {
10- console . warn ( "dispose is not a function; ignoring" , dispose ) ;
11- dispose = null ;
10+ throw new Error ( "invalid dispose" ) ;
1211 }
1312
1413 function change ( x ) {
Original file line number Diff line number Diff line change 11import that from "../that.js" ;
22
33export default function ( initialize ) {
4- const queue = [ ] ;
54 let resolve ;
6- let dispose = initialize ( push ) ;
5+ const queue = [ ] ;
6+ const dispose = initialize ( push ) ;
77
88 if ( dispose != null && typeof dispose !== "function" ) {
9- console . warn ( "dispose is not a function; ignoring" , dispose ) ;
10- dispose = null ;
9+ throw new Error ( "invalid dispose" ) ;
1110 }
1211
1312 function push ( x ) {
You can’t perform that action at this time.
0 commit comments