an unswallowable thenable
i presently make no claims that this is actually a good idea
WARNING: may not work correctly with async functions
an unswallowable thenable
i presently make no claims that this is actually a good idea
WARNING: may not work correctly with async functions
| Statistical profiling result from isolate-1-master-v8.log, (5687 ticks, 37 unaccounted, 0 excluded). | |
| [Shared libraries]: | |
| ticks total nonlib name | |
| 8 0.1% /usr/lib/system/libsystem_pthread.dylib | |
| 5 0.1% /usr/lib/system/libsystem_malloc.dylib | |
| 3 0.1% /usr/lib/libc++abi.dylib | |
| [JavaScript]: | |
| ticks total nonlib name |
| Statistical profiling result from isolate-2-patch-v8.log, (6806 ticks, 37 unaccounted, 0 excluded). | |
| [Shared libraries]: | |
| ticks total nonlib name | |
| 10 0.1% /usr/lib/system/libsystem_pthread.dylib | |
| 3 0.0% /usr/lib/libc++abi.dylib | |
| 1 0.0% /usr/lib/system/libsystem_platform.dylib | |
| [JavaScript]: | |
| ticks total nonlib name |
| function* f() { | |
| try { | |
| yield 1 | |
| yield 2 | |
| yield 3 | |
| } finally { | |
| yield 4 | |
| yield 5 | |
| } | |
| } |
| async function* f() { | |
| try { | |
| yield Promise.resolve(1) | |
| yield Promise.resolve(2) | |
| yield Promise.resolve(3) | |
| } finally { | |
| console.log('inside finally') | |
| // yield Promise.resolve(4) | |
| console.log('about to reject from finally') | |
| yield new Promise((res, rej) => { |
| function* f() { | |
| try { | |
| yield 1 | |
| yield 2 | |
| yield 3 | |
| } finally { | |
| yield 4 | |
| yield 5 | |
| } | |
| } |
| function* f() { | |
| try { | |
| yield 1 | |
| yield 2 | |
| yield 3 | |
| } finally { | |
| yield* f() | |
| } | |
| } |
| function* f() { | |
| try { | |
| yield 1 | |
| yield 2 | |
| yield 3 | |
| } finally { | |
| yield* f() | |
| } | |
| } |
| { | |
| "reason":"compiler-message", | |
| "package_id":"tide 0.8.0 (path+file:///Z:/Rust-Projects/tide)", | |
| "target":{ | |
| "kind":[ | |
| "lib" | |
| ], | |
| "crate_types":[ | |
| "lib" | |
| ], |
| #![forbid(unsafe_code)] | |
| #![deny(future_incompatible)] | |
| #![warn( | |
| missing_debug_implementations, | |
| rust_2018_idioms, | |
| trivial_casts, | |
| unused_qualifications | |
| )] | |
| #![doc(test(attr(deny(rust_2018_idioms, warnings))))] | |
| #![doc(test(attr(allow(unused_extern_crates, unused_variables))))] |