blues, you, i, my, me, to, baby, the, on, love, a, don't, man, down, boogie, i'm, woman, got, it, your, and, good, take, ain't, be, home, little, go, do, long, can't, that, back, time, gonna, with, is, mama, when, blue, what, gone, so, for, all, old, train, live, bad, rock, want, get, just, sweet, if, too, way, big, come, have, roll, road, know, right, going, please, out, let, more, one, how, girl, it's, up, like, you're, been, mind, trouble, tell, goin, day, morning, i'll, thing, hey, at, night, that's, i've, heart, black, fool, river, can, hard, lonesome, but, mean, she, keep, town, rag, make, new, dog, see, she's, oh, street, nobody, wrong, shake, miss, boy, around, need, about, lovin, why, done, country, leave, cry, away, highway, had, midnight, devil, crazy, city, red, daddy, walk, rockin, this, walkin, water, over, stomp, woogie, bye, somebody, st, money, times, mine, some, mr, won't, lonely, walking, low, easy, here, cold, chicago, guitar, alternate, last, gotta, slow, crying, door, well, agai
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export default async function doAbortable<R>( | |
| signal: AbortSignal | undefined, | |
| func: (abortSignal: AbortSignal) => R | Promise<R>, | |
| ): Promise<R> { | |
| const controller = new AbortController(); | |
| const abortInner = () => controller.abort(); | |
| if (signal?.aborted) { | |
| abortInner(); | |
| } else { | |
| signal?.addEventListener("abort", abortInner, { once: true }); |
See this comment for a revised version.
The override mistake is a problem introduced with ES5's ability to mark properties as non-writable. When a property on the prototype of an object is marked non-writable, it makes the property unaddable on the object.
Array<T>.prototype.*
concat(: (T | Array<T>)[]): T[]
concat(items)🔒- Returns a new array that is the concatenation of
thisand allitems. Non-array parameters are treated as if they were arrays with single elements. - ES3
['a'].concat('b', ['c', 'd']) → [ 'a', 'b', 'c', 'd' ]
- Returns a new array that is the concatenation of
copyWithin(:number, :number, ?:number): this
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async function drawCircles(mousedownEvent) { | |
| const { top, left } = theCanvas.getBoundingClientRect() | |
| for await (const clickEvent of clicks(theCanvas)) { | |
| const radius = Math.random() * 19 + 1 // Circles between 1-20 inclusive | |
| const color = randomColor() | |
| drawCircle( | |
| theCanvas, | |
| clickEvent.clientX - left, | |
| clickEvent.clientY - top, | |
| radius, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| async def yieldfromexample(): | |
| RESULT = yield from EXPR | |
| # Would become | |
| async def yieldfromexample(): | |
| _i = aiter(EXPR) | |
| try: | |
| _y = await anext(_i) | |
| except StopAsyncIteration as _e: | |
| _r = _e.value |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Boris the Spider | |
| Swamp | |
| Dry County | |
| White Lightning | |
| Murder By Numbers | |
| Dreadmonboogaloo | |
| Expresso Love | |
| Lizard Life | |
| Fuzzbox Voodoo | |
| Makin' Thunderbirds |