This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
current zone lost after await #700
Closed
Description
With native V8 async/await the current zone is lost after awaiting an async function.
require('zone.js')
const delay = ms => new Promise(resolve => setTimeout(resolve, ms))
const test = async () => {
console.log(Zone.current.name)
await delay(100, 'test')
console.log(Zone.current.name)
}
Zone.current.fork({
name: 'test',
}).run(test)
output:
test
<root>
zone.js 0.8.5
node 7.4.0 with --harmony-async-await
flag
Metadata
Metadata
Assignees
Labels
No labels