Skip to content

Instantly share code, notes, and snippets.

@zertosh
Last active October 26, 2016 15:42
Show Gist options
  • Save zertosh/a6111866b51ce5a7ee48432cd64405b1 to your computer and use it in GitHub Desktop.
Save zertosh/a6111866b51ce5a7ee48432cd64405b1 to your computer and use it in GitHub Desktop.
v8-generator-bug
{
"plugins": [
"transform-async-to-generator",
"transform-strict-mode"
]
}
.DS_Store
/node_modules
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 <zertosh@gmail.com>",
"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"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment