Browse Source

consistent naming scbeme

better-aggressive
Rich-Harris 9 years ago
parent
commit
e006d07a0b
  1. 3
      test/form/namespace-optimization-b/_config.js
  2. 15
      test/form/namespace-optimization-b/_expected/amd.js
  3. 13
      test/form/namespace-optimization-b/_expected/cjs.js
  4. 11
      test/form/namespace-optimization-b/_expected/es6.js
  5. 15
      test/form/namespace-optimization-b/_expected/iife.js
  6. 19
      test/form/namespace-optimization-b/_expected/umd.js
  7. 2
      test/form/namespace-optimization-b/foo.js
  8. 10
      test/form/namespace-optimization-b/main.js

3
test/form/namespace-optimization-b/_config.js

@ -0,0 +1,3 @@
module.exports = {
description: 'it does static lookup optimization of internal namespaces, coping with multiple namespaces in one function'
};

15
test/form/namespace-optimization-b/_expected/amd.js

@ -0,0 +1,15 @@
define(function () { 'use strict';
function foo() {
}
function a() {
foo();
foo();
var a;
if (a.b) {
}
}
a();
});

13
test/form/namespace-optimization-b/_expected/cjs.js

@ -0,0 +1,13 @@
'use strict';
function foo() {
}
function a() {
foo();
foo();
var a;
if (a.b) {
}
}
a();

11
test/form/namespace-optimization-b/_expected/es6.js

@ -0,0 +1,11 @@
function foo() {
}
function a() {
foo();
foo();
var a;
if (a.b) {
}
}
a();

15
test/form/namespace-optimization-b/_expected/iife.js

@ -0,0 +1,15 @@
(function () { 'use strict';
function foo() {
}
function a() {
foo();
foo();
var a;
if (a.b) {
}
}
a();
})();

19
test/form/namespace-optimization-b/_expected/umd.js

@ -0,0 +1,19 @@
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
typeof define === 'function' && define.amd ? define(factory) :
factory();
}(this, function () { 'use strict';
function foo() {
}
function a() {
foo();
foo();
var a;
if (a.b) {
}
}
a();
}));

2
test/form/namespace-optimization-b/foo.js

@ -0,0 +1,2 @@
export function foo() {
};

10
test/form/namespace-optimization-b/main.js

@ -0,0 +1,10 @@
import * as foo from './foo';
function a() {
foo.foo();
foo.foo();
var a;
if (a.b) {
}
}
a();
Loading…
Cancel
Save