File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed
Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1+ // Flags: --expose-internals
12'use strict' ;
23
34const common = require ( '../common' ) ;
45
56const assert = require ( 'assert' ) ;
67const { AsyncLocalStorage } = require ( 'async_hooks' ) ;
78
9+ // TODO(qard): This is known to fail with ContinuationPreservedEmbedderData
10+ // as thenables are not yet supported in V8. A fix should hopefully land soon.
11+ //
12+ // See: https://chromium-review.googlesource.com/c/v8/v8/+/4674242
13+ const { internalBinding } = require ( 'internal/test/binding' ) ;
14+ const { AsyncContextFrame } = internalBinding ( 'async_context_frame' ) ;
15+ const hasAsyncContextFrame = typeof AsyncContextFrame === 'function' ;
16+ if ( hasAsyncContextFrame ) {
17+ return ;
18+ }
19+
820// This test verifies that async local storage works with thenables
921
1022const store = new AsyncLocalStorage ( ) ;
You can’t perform that action at this time.
0 commit comments