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

« back to all changes in this revision

Viewing changes to src/org/mozilla/javascript/NativeCall.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:
51
51
{
52
52
    static final long serialVersionUID = -7471457301304454454L;
53
53
 
54
 
    private static final Object CALL_TAG = new Object();
 
54
    private static final Object CALL_TAG = "Call";
55
55
 
56
56
    static void init(Scriptable scope, boolean sealed)
57
57
    {
101
101
        }
102
102
    }
103
103
 
 
104
    @Override
104
105
    public String getClassName()
105
106
    {
106
107
        return "Call";
107
108
    }
108
109
 
 
110
    @Override
109
111
    protected int findPrototypeId(String s)
110
112
    {
111
113
        return s.equals("constructor") ? Id_constructor : 0;
112
114
    }
113
115
 
 
116
    @Override
114
117
    protected void initPrototypeId(int id)
115
118
    {
116
119
        String s;
123
126
        initPrototypeMethod(CALL_TAG, id, s, arity);
124
127
    }
125
128
 
 
129
    @Override
126
130
    public Object execIdCall(IdFunctionObject f, Context cx, Scriptable scope,
127
131
                             Scriptable thisObj, Object[] args)
128
132
    {