toolkit/components/reflect/reflect.jsm

branch
TOR_BUG_3246
changeset 7
129ffea94266
equal deleted inserted replaced
-1:000000000000 0:367703b7b165
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6 this.EXPORTED_SYMBOLS = [ "Reflect" ];
7
8 /*
9 * This is the js module for Reflect. Import it like so:
10 * Components.utils.import("resource://gre/modules/reflect.jsm");
11 *
12 * This will create a 'Reflect' object, which provides an interface to the
13 * SpiderMonkey parser API.
14 *
15 * For documentation on the API, see:
16 * https://developer.mozilla.org/en/SpiderMonkey/Parser_API
17 *
18 */
19
20
21 // Initialize the ctypes object. You do not need to do this yourself.
22 const init = Components.classes["@mozilla.org/jsreflect;1"].createInstance();
23 init();
24 this.Reflect = Reflect;

mercurial