summaryrefslogtreecommitdiffstats
path: root/js/xpconnect/tests/unit/test_bug408412.js
blob: 06321a6f876bc97c4e93e52a64bea20053a9a2d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
 
function run_test() {
  try {
    ChromeUtils.import("resource://test/syntax_error.jsm");
    do_throw("Failed to report any error at all");
  } catch (e) {
    Assert.notEqual(/^SyntaxError:/.exec(e + ''), null);
  }
}