Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
michael@0 | 1 | // Added noise to test AST walker |
michael@0 | 2 | for (var i = 0; i < 5; i++) { |
michael@0 | 3 | square(i); |
michael@0 | 4 | } |
michael@0 | 5 | |
michael@0 | 6 | exports.directoryDefaults = require('./utils'); |
michael@0 | 7 | exports.directoryMain = require('./newmodule'); |
michael@0 | 8 | exports.resolvesJSoverDir= require('./dir/a'); |
michael@0 | 9 | exports.math = require('test-math'); |
michael@0 | 10 | exports.mathInRelative = require('./dir/b'); |
michael@0 | 11 | exports.customMainModule = require('test-custom-main'); |
michael@0 | 12 | exports.customMainModuleRelative = require('test-custom-main-relative'); |
michael@0 | 13 | exports.defaultMain = require('test-default-main'); |
michael@0 | 14 | exports.testJSON = require('./dir/c'); |
michael@0 | 15 | exports.dummyModule = require('./dir/dummy'); |
michael@0 | 16 | |
michael@0 | 17 | exports.eventCore = require('sdk/event/core'); |
michael@0 | 18 | exports.promise = require('sdk/core/promise'); |
michael@0 | 19 | |
michael@0 | 20 | exports.localJSM = require('./dir/test.jsm'); |
michael@0 | 21 | exports.promisejsm = require('modules/Promise.jsm').Promise; |
michael@0 | 22 | |
michael@0 | 23 | let math = require('test-math'); |
michael@0 | 24 | exports.areModulesCached = (math === exports.math); |
michael@0 | 25 | |
michael@0 | 26 | // Added noise to test AST walker |
michael@0 | 27 | function square (x) { |
michael@0 | 28 | let tmp = x; |
michael@0 | 29 | tmp *= x; |
michael@0 | 30 | return tmp; |
michael@0 | 31 | } |
michael@0 | 32 |