Browse Source

Do not output getter defs when in legacy mode

legacy-quote-reserved-properties
Iván Sánchez Ortega 8 years ago
parent
commit
5881a2867d
  1. 2
      src/Declaration.js

2
src/Declaration.js

@ -79,7 +79,7 @@ export class SyntheticNamespaceDeclaration {
const members = keys( this.originals ).map( name => {
const original = this.originals[ name ];
if ( original.isReassigned ) {
if ( original.isReassigned && !legacy ) {
return `${indentString}get ${name} () { return ${original.getName( es )}; }`;
}

Loading…
Cancel
Save