@ -82,6 +82,9 @@ export class SyntheticNamespaceDeclaration {
if ( original.isReassigned ) {
return `${indentString}get ${name} () { return ${original.getName( es )}; }`;
}
if (legacy) {
name = `'${name}'`;
return `${indentString}${name}: ${original.getName( es )}`;
});
@ -4,7 +4,7 @@ define(function () { 'use strict';
var namespace = (Object.freeze || Object)({
foo: foo
'foo': foo
const x = 'foo';
@ -4,7 +4,7 @@ const foo = 42;
@ -2,7 +2,7 @@ const foo = 42;
@ -5,7 +5,7 @@
@ -8,7 +8,7 @@