[ES6] Modules' `export default function/class` should be declaration
[WebKit-https.git] / JSTests / modules / export-default-function-name-in-generator-declaration.js
1 import func from "./export-default-function-name-in-generator-declaration.js"
2 import { shouldBe } from "./resources/assert.js";
3
4 export default function * () { }
5
6 // https://tc39.github.io/ecma262/#sec-exports-runtime-semantics-evaluation
7 shouldBe(func.name, 'default');
8 // shouldBe(func.toString(), `function * () { }`);