r9644 - in helma-ng/trunk: modules/helma src/org/helma/jack
[email protected] Wed, 22 Apr 2009 01:41:48 +0200 (CEST)
| Newsgroups | gmane.comp.java.helma.cvs |
|---|---|
| Message-ID | <20090421234148.A90E43D0D6@mia> |
Author: hannes
Date: 2009-04-22 01:41:48 +0200 (Wed, 22 Apr 2009)
New Revision: 9644
Modified:
helma-ng/trunk/modules/helma/httpserver.js
helma-ng/trunk/src/org/helma/jack/JackEnv.java
Log:
Stupid Workaround for the fact that getter-only properties are always readonly in Rhino HEAD.
Details at http://dev.helma.org/trac/helma/changeset/9644
Modified: helma-ng/trunk/modules/helma/httpserver.js
===================================================================
--- helma-ng/trunk/modules/helma/httpserver.js 2009-04-21 16:51:52 UTC (rev 9643)
+++ helma-ng/trunk/modules/helma/httpserver.js 2009-04-21 23:41:48 UTC (rev 9644)
@@ -108,8 +108,8 @@
*/
function initRequest(env) {
var IO = require('io').IO;
- env['jack.input'] = new IO(env['jack.input'], null);
- env['jack.error'] = new IO(null, env['jack.error']);
+ env['jack.input'] = new IO(env['jack.input_stream'], null);
+ env['jack.error'] = new IO(null, env['jack.error_stream']);
}
/**
Modified: helma-ng/trunk/src/org/helma/jack/JackEnv.java
===================================================================
--- helma-ng/trunk/src/org/helma/jack/JackEnv.java 2009-04-21 16:51:52 UTC (rev 9643)
+++ helma-ng/trunk/src/org/helma/jack/JackEnv.java 2009-04-21 23:41:48 UTC (rev 9644)
@@ -120,8 +120,8 @@
proto.defineProperty("QUERY_STRING", null, getMethod("getQueryString"), null, flags);
proto.defineProperty("HTTP_VERSION", null, getMethod("getHttpVersion"), null, flags);
proto.defineProperty("REMOTE_HOST", null, getMethod("getRemoteHost"), null, flags);
- proto.defineProperty("jack.input", null, getMethod("getInputStream"), null, flags);
- proto.defineProperty("jack.error", null, getMethod("getErrorStream"), null, flags);
+ proto.defineProperty("jack.input_stream", null, getMethod("getInputStream"), null, flags);
+ proto.defineProperty("jack.error_stream", null, getMethod("getErrorStream"), null, flags);
Scriptable version = cx.newArray(scope, new Object[] {Integer.valueOf(0), Integer.valueOf(1)});
ScriptableObject.defineProperty(proto, "jack.version", version, flags);
ScriptableObject.defineProperty(proto, "jack.multithread", Boolean.TRUE, flags);