index.js 962 B

1234567891011121314151617181920212223242526272829303132
  1. // Added noise to test AST walker
  2. for (var i = 0; i < 5; i++) {
  3. square(i);
  4. }
  5. exports.directoryDefaults = require('./utils');
  6. exports.directoryMain = require('./newmodule');
  7. exports.resolvesJSoverDir= require('./dir/a');
  8. exports.math = require('test-math');
  9. exports.mathInRelative = require('./dir/b');
  10. exports.customMainModule = require('test-custom-main');
  11. exports.customMainModuleRelative = require('test-custom-main-relative');
  12. exports.defaultMain = require('test-default-main');
  13. exports.testJSON = require('./dir/c');
  14. exports.dummyModule = require('./dir/dummy');
  15. exports.eventCore = require('sdk/event/core');
  16. exports.promise = require('sdk/core/promise');
  17. exports.localJSM = require('./dir/test.jsm');
  18. exports.promisejsm = require('modules/Promise.jsm').Promise;
  19. let math = require('test-math');
  20. exports.areModulesCached = (math === exports.math);
  21. // Added noise to test AST walker
  22. function square (x) {
  23. let tmp = x;
  24. tmp *= x;
  25. return tmp;
  26. }