~james-page/ubuntu/natty/rhino/fix-304702

« back to all changes in this revision

Viewing changes to src/org/mozilla/javascript/optimizer/OptRuntime.java

  • Committer: Bazaar Package Importer
  • Author(s): Damien Raude-Morvan, Marcus Better, Matthias Klose, Damien Raude-Morvan
  • Date: 2009-04-13 02:40:15 UTC
  • mfrom: (11.1.1 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090413024015-i21xnoehukpipbcw
Tags: 1.7R2-1
[ Marcus Better ]
* Updated package descriptions.

[ Matthias Klose ]
* (Build-)depend on default-jre-headless/-jdk.
* Drop alternate dependencies on java2-runtime-headless and
  java2-runtime-headless. The binary package is currently built to
  require a java5 runtime.

[ Damien Raude-Morvan ]
* New upstream release.
  - new 02_exclude-jdk15 patch to exclude already compiled classes
    for jdk15 rebuild: gcj doesn't handle compiling classes already
    on its classpath
  - new "rhino-debugger" launcher for Rhino Debugger Swing UI
  - update "rhino" launcher to exclude OpenJDK bundled rhino (Closes: #512498)
* debian/{postinst,prerm }: scripts should take care of errors,
  add set -e before any instruction
* debian/rules: add new get-orig-source target using uscan
* debian/control:
  - Build-Depends on specialized default-jdk-builddep instead of
  default-jdk
  - Bump Standards-Version to 3.8.1: Wrap Uploaders field
  - add Depends on ${misc:Depends}

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
    public static Object callProp0(Object value, String property,
115
115
                                   Context cx, Scriptable scope)
116
116
    {
117
 
        Callable f = getPropFunctionAndThis(value, property, cx);
 
117
        Callable f = getPropFunctionAndThis(value, property, cx, scope);
118
118
        Scriptable thisObj = lastStoredScriptable(cx);
119
119
        return f.call(cx, scope, thisObj, ScriptRuntime.emptyArgs);
120
120
    }
237
237
 
238
238
    public static void main(final Script script, final String[] args)
239
239
    {
240
 
        Context.call(new ContextAction() {
 
240
        ContextFactory.getGlobal().call(new ContextAction() {
241
241
            public Object run(Context cx)
242
242
            {
243
243
                ScriptableObject global = getGlobal(cx);