Open
Description
- Version: v14.16.1
- Platform: win10 x64
- Subsystem:
What steps will reproduce the bug?
C:\Users\admin>node
Welcome to Node.js v14.16.1.
Type ".help" for more information.
> a=vm.createContext({},{microtaskMode:"afterEvaluate"})
{}
> vm.runInContext("Promise.resolve().then(()=>{while(1){}})",a,{timeout:5})
Uncaught Error: Script execution timed out after 5ms
at Script.runInContext (vm.js:143:18)
at Object.runInContext (vm.js:294:6) {
code: 'ERR_SCRIPT_EXECUTION_TIMEOUT'
}
> Error: async hook stack has become corrupted (actual: 126, expected: 5)
1: 00007FF6E1F7046F napi_wrap+109311
2: 00007FF6E1F8DBF3 v8::internal::compiler::Operator::EffectOutputCount+6947
3: 00007FF6E1F9409A node::CallbackScope::~CallbackScope+570
4: 00007FF6E1F944FB node::CallbackScope::~CallbackScope+1691
5: 00007FF6E1F8C1B4 v8::internal::compiler::Operator::EffectOutputCount+228
6: 00007FF6E1E3E7F3 v8::internal::Isolate::isolate_root_bias+13667
7: 00007FF6E1E3F36D v8::internal::Isolate::isolate_root_bias+16605
8: 00007FF6E1E39F19 v8::internal::Space::identity+1257
9: 00007FF6E1FA9DE8 uv_udp_set_ttl+5176
10: 00007FF6E1FC3D1C uv_loop_init+908
11: 00007FF6E1FC403A uv_run+202
12: 00007FF6E1ED0125 v8::internal::OrderedHashTable<v8::internal::OrderedHashMap,2>::NumberOfBucketsOffset+9365
13: 00007FF6E1F438D7 node::Start+311
14: 00007FF6E1DA676C RC4_options+339564
15: 00007FF6E2D4740C v8::internal::compiler::RepresentationChanger::Uint32OverflowOperatorFor+152316
16: 00007FFEBE457BD4 BaseThreadInitThunk+20
17: 00007FFEC06ECED1 RtlUserThreadStart+33