ECMAScript icon indicating copy to clipboard operation
ECMAScript copied to clipboard

export { default } from xxx lead to a crash

Open AsakuraMizu opened this issue 4 years ago • 2 comments

Example:
a.js

export default class A extends godot.Node {
}

b.js

export { default } from './a';

And this will also crash:
c.js

export class C extends godot.Node {
}

d.js

export { C as default } from './c';

AsakuraMizu avatar Sep 09 '20 00:09 AsakuraMizu

Does default is a keyword to prevent you doing this ?

Geequlim avatar Sep 17 '20 01:09 Geequlim

@AsakuraMizu I think you can't use 'default' in case b.js and d.js. Its a keyword

jcostello avatar Sep 23 '20 12:09 jcostello