Browse Source

update tests

gh-1132
Rich Harris 8 years ago
parent
commit
75442ef67e
  1. 3
      src/Declaration.js

3
src/Declaration.js

@ -82,6 +82,9 @@ export class SyntheticNamespaceDeclaration {
if ( original.isReassigned && !legacy ) { if ( original.isReassigned && !legacy ) {
return `${indentString}get ${name} () { return ${original.getName( es )}; }`; return `${indentString}get ${name} () { return ${original.getName( es )}; }`;
} }
if (legacy) {
name = `'${name}'`;
}
return `${indentString}${name}: ${original.getName( es )}`; return `${indentString}${name}: ${original.getName( es )}`;
}); });

Loading…
Cancel
Save