summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/unit/test_promise.js
blob: 46c34a9bc2e3ac9ce0199948eb680b83ab463ee2 (plain)
1
2
3
4
5
6
7
8
function run_test() {
  var Cu = Components.utils;
  sb = new Cu.Sandbox('http://www.example.com');
  sb.do_check_eq = do_check_eq;
  Cu.evalInSandbox('do_check_eq(typeof new Promise(function(resolve){resolve();}), "object");',
                   sb);
  do_check_eq(typeof new Promise(function(resolve){resolve();}), "object");
}