зеркало из https://github.com/mozilla/pjs.git
Miscellaneous formatting changes.
This commit is contained in:
Родитель
142af94b8f
Коммит
7f2239a2c4
|
@ -75,7 +75,7 @@ class InterpretedFunction extends NativeFunction implements DebuggableScript {
|
|||
throws JavaScriptException
|
||||
{
|
||||
if (itsClosure != null)
|
||||
scope = itsClosure;
|
||||
scope = itsClosure;
|
||||
else if (!itsData.itsUseDynamicScope)
|
||||
scope = getParentScope();
|
||||
if (itsData.itsNeedsActivation)
|
||||
|
|
|
@ -58,12 +58,12 @@ final class JavaScriptClassLoader extends ClassLoader {
|
|||
{
|
||||
Class clazz = findLoadedClass(name);
|
||||
if (clazz == null) {
|
||||
// Experimental change for JShell, use outer class loader.
|
||||
ClassLoader loader = JavaScriptClassLoader.class.getClassLoader();
|
||||
if (loader != null)
|
||||
return loader.loadClass(name);
|
||||
// Experimental change for JShell, use outer class loader.
|
||||
ClassLoader loader = JavaScriptClassLoader.class.getClassLoader();
|
||||
if (loader != null)
|
||||
return loader.loadClass(name);
|
||||
clazz = findSystemClass(name);
|
||||
}
|
||||
}
|
||||
if (resolve)
|
||||
resolveClass(clazz);
|
||||
return clazz;
|
||||
|
|
|
@ -91,7 +91,8 @@ public class NativeRegExp extends ScriptableObject implements Function {
|
|||
}
|
||||
|
||||
public void init(Context cx, Scriptable scope, String source,
|
||||
String global, boolean flat) {
|
||||
String global, boolean flat)
|
||||
{
|
||||
this.source = source;
|
||||
flags = 0;
|
||||
if (global != null) {
|
||||
|
|
|
@ -75,7 +75,7 @@ class InterpretedFunction extends NativeFunction implements DebuggableScript {
|
|||
throws JavaScriptException
|
||||
{
|
||||
if (itsClosure != null)
|
||||
scope = itsClosure;
|
||||
scope = itsClosure;
|
||||
else if (!itsData.itsUseDynamicScope)
|
||||
scope = getParentScope();
|
||||
if (itsData.itsNeedsActivation)
|
||||
|
|
|
@ -58,12 +58,12 @@ final class JavaScriptClassLoader extends ClassLoader {
|
|||
{
|
||||
Class clazz = findLoadedClass(name);
|
||||
if (clazz == null) {
|
||||
// Experimental change for JShell, use outer class loader.
|
||||
ClassLoader loader = JavaScriptClassLoader.class.getClassLoader();
|
||||
if (loader != null)
|
||||
return loader.loadClass(name);
|
||||
// Experimental change for JShell, use outer class loader.
|
||||
ClassLoader loader = JavaScriptClassLoader.class.getClassLoader();
|
||||
if (loader != null)
|
||||
return loader.loadClass(name);
|
||||
clazz = findSystemClass(name);
|
||||
}
|
||||
}
|
||||
if (resolve)
|
||||
resolveClass(clazz);
|
||||
return clazz;
|
||||
|
|
|
@ -91,7 +91,8 @@ public class NativeRegExp extends ScriptableObject implements Function {
|
|||
}
|
||||
|
||||
public void init(Context cx, Scriptable scope, String source,
|
||||
String global, boolean flat) {
|
||||
String global, boolean flat)
|
||||
{
|
||||
this.source = source;
|
||||
flags = 0;
|
||||
if (global != null) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче