aboutsummaryrefslogtreecommitdiff
path: root/tools/node_modules/source-map/build/suffix-utils.jsm
diff options
context:
space:
mode:
authorJez Ng <me@jezng.com>2013-06-06 17:48:21 -0700
committerJez Ng <me@jezng.com>2013-06-19 01:22:01 -0700
commit86e672a4371e57238fabdde3a35eeee03c8aa77f (patch)
treef4ec03ff2e181e10865b18865e522284d6a29f9f /tools/node_modules/source-map/build/suffix-utils.jsm
parent6d7fb083a86bd58317ff3ce0ecc2300934bb9076 (diff)
Commit the source-map library.
Diffstat (limited to 'tools/node_modules/source-map/build/suffix-utils.jsm')
-rw-r--r--tools/node_modules/source-map/build/suffix-utils.jsm21
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/node_modules/source-map/build/suffix-utils.jsm b/tools/node_modules/source-map/build/suffix-utils.jsm
new file mode 100644
index 00000000..b31b84cb
--- /dev/null
+++ b/tools/node_modules/source-map/build/suffix-utils.jsm
@@ -0,0 +1,21 @@
+/* -*- Mode: js; js-indent-level: 2; -*- */
+/*
+ * Copyright 2011 Mozilla Foundation and contributors
+ * Licensed under the New BSD license. See LICENSE or:
+ * http://opensource.org/licenses/BSD-3-Clause
+ */
+function runSourceMapTests(modName, do_throw) {
+ let mod = require(modName);
+ let assert = require('test/source-map/assert');
+ let util = require('test/source-map/util');
+
+ assert.init(do_throw);
+
+ for (let k in mod) {
+ if (/^test/.test(k)) {
+ mod[k](assert, util);
+ }
+ }
+
+}
+this.runSourceMapTests = runSourceMapTests;