incubator-connectors-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1307527 - /incubator/lcf/trunk/framework/core/src/test/resources/org/apache/manifoldcf/core/tests/Javascript.py
Date Fri, 30 Mar 2012 16:43:29 GMT
Author: kwright
Date: Fri Mar 30 16:43:28 2012
New Revision: 1307527

URL: http://svn.apache.org/viewvc?rev=1307527&view=rev
Log:
Fix how the tester handles constants, so methods can be used on them.

Modified:
    incubator/lcf/trunk/framework/core/src/test/resources/org/apache/manifoldcf/core/tests/Javascript.py

Modified: incubator/lcf/trunk/framework/core/src/test/resources/org/apache/manifoldcf/core/tests/Javascript.py
URL: http://svn.apache.org/viewvc/incubator/lcf/trunk/framework/core/src/test/resources/org/apache/manifoldcf/core/tests/Javascript.py?rev=1307527&r1=1307526&r2=1307527&view=diff
==============================================================================
--- incubator/lcf/trunk/framework/core/src/test/resources/org/apache/manifoldcf/core/tests/Javascript.py
(original)
+++ incubator/lcf/trunk/framework/core/src/test/resources/org/apache/manifoldcf/core/tests/Javascript.py
Fri Mar 30 16:43:28 2012
@@ -1480,7 +1480,7 @@ class JSTokenStream:
             return JSNull( )
         if token != None and token.get_string( ) != None:
             self.advance( )
-            return JSString( token.get_string( ) )
+            return JSNonSettableReference( JSString( token.get_string( ) ) )
         if token != None and token.get_int( ) != None:
             self.advance( )
             return JSNumber( token.get_int( ) )
@@ -1489,7 +1489,7 @@ class JSTokenStream:
             return JSNumber( token.get_float( ) )
         if token != None and token.get_regexp( ) != None:
             self.advance( )
-            return JSRegexp( token.get_regexp( ), token.get_regexp_global( ), token.get_regexp_insensitive(
) )
+            return JSNonSettableReference( JSRegexp( token.get_regexp( ), token.get_regexp_global(
), token.get_regexp_insensitive( ) ) )
         if token != None and token.get_symbol( ) == "new":
             self.advance( )
             token = self.peek( )



Mime
View raw message