michael@0: /* -*- Mode: js; js-indent-level: 2; -*- */ michael@0: /* Any copyright is dedicated to the Public Domain. michael@0: http://creativecommons.org/publicdomain/zero/1.0/ */ michael@0: michael@0: // Test devtools.lazyRequireGetter michael@0: michael@0: function run_test() { michael@0: const o = {}; michael@0: devtools.lazyRequireGetter(o, "asyncUtils", "devtools/async-utils"); michael@0: const asyncUtils = devtools.require("devtools/async-utils"); michael@0: // XXX: do_check_eq only works on primitive types, so we have this michael@0: // do_check_true of an equality expression. michael@0: do_check_true(o.asyncUtils === asyncUtils); michael@0: }