Repro of https://bugs.chromium.org/p/v8/issues/detail?id=5322 See atom/atom#13073
npm install
npm run build
From the console in Atom 1.12.0-beta4, run:
require('path/to/v8-generator-bug/transpiled.js')
{ | |
"plugins": [ | |
"transform-async-to-generator", | |
"transform-strict-mode" | |
] | |
} |
.DS_Store | |
/node_modules |
Repro of https://bugs.chromium.org/p/v8/issues/detail?id=5322 See atom/atom#13073
npm install
npm run build
From the console in Atom 1.12.0-beta4, run:
require('path/to/v8-generator-bug/transpiled.js')
function bar() { | |
return 1; | |
} | |
async function foo() { | |
let out = await bar(); | |
return out.toString(); | |
} | |
foo(); |
{ | |
"name": "v8-generator-bug", | |
"version": "0.0.0", | |
"description": "", | |
"main": "index.js", | |
"scripts": { | |
"build": "babel original.js -o transpiled.js", | |
"test": "echo \"Error: no test specified\" && exit 1" | |
}, | |
"author": "Andres Suarez <[email protected]>", | |
"license": "MIT", | |
"devDependencies": { | |
"babel-cli": "^6.18.0", | |
"babel-core": "^6.18.0", | |
"babel-plugin-transform-async-to-generator": "^6.16.0", | |
"babel-plugin-transform-strict-mode": "^6.18.0" | |
} | |
} |