diff --git a/js/rhino/apiClasses.properties b/js/rhino/apiClasses.properties
index 84692041a3e..232f6d14e1c 100644
--- a/js/rhino/apiClasses.properties
+++ b/js/rhino/apiClasses.properties
@@ -3,10 +3,10 @@ apiClasses=\
src/org/mozilla/javascript/ClassCache.java,\
src/org/mozilla/javascript/ClassDefinitionException.java,\
src/org/mozilla/javascript/ClassShutter.java,\
+ src/org/mozilla/javascript/CompilerEnvirons.java,\
src/org/mozilla/javascript/Context.java,\
src/org/mozilla/javascript/ContextAction.java,\
src/org/mozilla/javascript/ContextFactory.java,\
- src/org/mozilla/javascript/ContextListener.java,\
src/org/mozilla/javascript/EcmaError.java,\
src/org/mozilla/javascript/ErrorReporter.java,\
src/org/mozilla/javascript/EvaluatorException.java,\
diff --git a/js/rhino/docs/api.html b/js/rhino/docs/api.html
index 43ff2538917..0aa33c37b96 100644
--- a/js/rhino/docs/api.html
+++ b/js/rhino/docs/api.html
@@ -24,9 +24,8 @@ JavaScript evaluation engine with a Java thread, set attributes of the
engine, and compile and evaluate scripts.
-ContextListener
-- Allows embeddings to be notified of the creation, entering, exiting,
-and releasing of Contexts.
+ContextFactory
+- Allows embeddings to customize creation of Context instances and monitor entering and releasing of Contexts.
Script - The result of
@@ -74,7 +73,7 @@ for use by JavaScript.
The Host Object API
These APIs provide support for adding objects specific to a particular
embedding of JavaScript in a host environment. Note that if you just want
-to script existing Java classes, you should just use LiveConnect.
+to script existing Java classes, you should just use LiveConnect. See also LiveConnect 3.0 specs.
It is also helpful to understand some of the implementation of the runtime.
-
@@ -101,7 +100,7 @@ to be used as JavaScript function objects.
-
ImporterTopLevel
-- Allows embeddings to use the importClass and importPackage functions.
+- Allows embeddings to use the JavaImporter constructor.
@@ -109,23 +108,23 @@ Exceptions
These exceptions are thrown by JavaScript.
-
+RhinoException
+- Common root for all exception explicitly thrown by Rhino engine.
+
JavaScriptException
-- Thrown from within JavaScript by the JavaScript 'throw' statement, or
-by LiveConnect calls from JavaScript into Java. Wraps a JavaScript value.
+- Thrown from within JavaScript by the JavaScript 'throw' statement. It wrapps the JavaScript value from 'throw' statement.
-
-ClassDefinitionException
-- Thrown if errors are detected while attempting to define a host object
-from a Java class.
+EcmaError
+- Thrown by Rhino runtime when particular runtime operation a scripts tries to execute is not allowed. The exception is thrown, for example, when a script attempts to check properties of undefinedor null or refer to a name that can not be found in the current scope chain.
-
-PropertyException
-- Thrown if errors are detected while attempting to define a property of
-a host object from a Java class or method, or if a property is not found.
+WrappedException
+- Thrown by LiveConnect implementation from JavaScript when called Java method exits with an exception. It wraps the original Java exception.
-
EvaluatorException
-- An exception thrown when an error is detected during the execution of
+- An exception thrown when an error is detected during the compilation or execution of
a script. The default error reporter will throw EvaluatorExceptions when
an error is encountered.
diff --git a/js/rhino/docs/changes.html b/js/rhino/docs/changes.html
index 1732c81ce34..ed883584301 100644
--- a/js/rhino/docs/changes.html
+++ b/js/rhino/docs/changes.html
@@ -48,7 +48,7 @@ The class gives the uniform way to access information about the script origin of
See Bugzilla 244492 for details.
-Removal of code complexity limits in the interpretr
+Removal of code complexity limits in the interpretr
The interpreter mode in Rhino does not limit any longer the script size or code complexity. It should be possible to execute any script as long as JVM resources allow so.
@@ -57,7 +57,7 @@ See Bugzilla 244014
-JavaImporter constructor
+JavaImporter constructor
JavaImporter is a new global constructor that allows to omit explicit package names when scripting Java:
@@ -85,8 +85,14 @@ Previously such functionality was available only to embeddings that used Bugzilla 245882 for details.
+Context customization API
+org.mozilla.javascript.ContextFactory provides new API for customization of org.mozilla.javascript.Context and ensures that application-specific Context subclasses will always be used with when Rhino runtime needs to create Context instances.
+
+
+See Bugzilla 245882 for details.
+
-Support for Date.now()
+Support for Date.now()
Date.now() function which is a SpiderMonkey extension to ECMAScript standard is available now in Rhino. The function returns number of milliseconds passed since 1970-01-01 00:00:00 UTC.