Debian Codegraph @

rhino/testsrc/org/mozilla/javascript/tests/Bug412433Test.java

raw symbols SCIP
1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
4
5 /**
6 *
7 */
8 package org.mozilla.javascript.tests;
9
10 import junit.framework.TestCase;
11
12 import org.mozilla.javascript.*;
13
14 /**
15 * See https://bugzilla.mozilla.org/show_bug.cgi?id=412433
16 * @author Norris Boyd
17 */
18 public class Bug412433Test extends TestCase {
19 public void testMalformedJavascript2()
20 {
21 Context context = Context.enter();
22 try {
23 ScriptableObject scope = context.initStandardObjects();
24 context.evaluateString(scope, "\"\".split(/[/?,/&]/)", "", 0, null);
25 } finally {
26 Context.exit();
27 }
28 }
29 }