igor%mir2.org
a80d67208d
First part of resolving http://bugzilla.mozilla.org/show_bug.cgi?id=223435 :
...
Allow to pass JS function to Java method accepting interface with single method. The function will be called when interface method will be called.
2003-10-28 08:37:30 +00:00
igor%mir2.org
c25c8fc58f
Added getAssociatedValue()/associateValue() to allow to connect arbitrary application-specific object with ScriptableObject.
2003-10-27 19:19:50 +00:00
brendan%mozilla.org
102afcc93c
Don't under-malloc for short script filename entry (223810, r=shaver, a=dbaron).
2003-10-27 19:13:01 +00:00
igor%mir2.org
7514a2a682
Added initHash which would put value into hashtable only if it is first. This is usable to ensure proper synchronization with lazy initialization.
2003-10-27 18:45:39 +00:00
igor%mir2.org
2b2f9d3303
If invoker master throws RuntimeException during creation of invoker, then disable invokerOptimization. It fixes regression when SecurityManager prevents InvokerMaster from creation of class loader.
2003-10-27 18:42:39 +00:00
tor%cs.brown.edu
7d206cb287
Backout of bug 153586. a=asa
2003-10-27 17:00:38 +00:00
igor%mir2.org
64affb2798
Added addPush version taking long argument.
2003-10-27 15:47:05 +00:00
pschwartau%netscape.com
1faffc0fb6
Replacing "Copyright �" by "Copyright (C)" in JS test suite sources. See bug 222759.
2003-10-27 01:49:27 +00:00
igor%mir2.org
a9d220df39
Common logic to create and cache adapter class on demand is moved to the new method getAdapterClass
2003-10-25 11:46:18 +00:00
igor%mir2.org
8b796c2f63
In getApplicationClassLoader cache result of Thread.getContextClassLoader if it coincides with the loader that loaded Context class.
2003-10-25 11:42:34 +00:00
brendan%mozilla.org
94f8c13c56
Hack to cope with input case (/|/, /x|/, etc.) not handled by recent rewrite (223535, r=timeless, sr=shaver, a=asa).
2003-10-24 22:23:36 +00:00
pschwartau%netscape.com
82a03fc995
Adding more cases.
2003-10-24 17:55:06 +00:00
pschwartau%netscape.com
e3b4c16fa0
Initial add. Regression test for bug 223535.
2003-10-24 17:47:36 +00:00
pschwartau%netscape.com
92ef5f7beb
Follow Perl 5, not ECMA-262 Ed 3 on unescaped, unbalanced brackets and braces. See bug 223273.
2003-10-24 17:18:21 +00:00
pschwartau%netscape.com
21596d6383
Correcting a mistake: remember to escape the escape character inside eval strings!
2003-10-24 00:51:37 +00:00
brendan%mozilla.org
0355393543
Fix to error on extra ) in regexp rather than corrupt 'n' crash (223273, r=timeless, sr=shaver, a=asa).
2003-10-24 00:37:49 +00:00
igor%mir2.org
e5b4886f58
Added information on shared scopes
2003-10-23 21:49:23 +00:00
igor%mir2.org
f813a31aa8
Updated to remove NotAFunction exception handler which is not generated any more and was deprecated.
2003-10-23 21:48:45 +00:00
pschwartau%netscape.com
0b9f8244c1
Whitespace fix.
2003-10-23 21:15:06 +00:00
pschwartau%netscape.com
e03b9ebe33
Fixing a comment.
2003-10-23 21:13:34 +00:00
pschwartau%netscape.com
d04a86445e
Added cases covering unbalanced brackets and braces.
2003-10-23 20:48:43 +00:00
pschwartau%netscape.com
054eaeb6fc
Initial add. Regression test for bug 223273.
2003-10-23 20:27:32 +00:00
igor%mir2.org
a23733fc96
The class is no longer used.
2003-10-22 08:02:37 +00:00
igor%mir2.org
00c2ae199e
1. Added Context.hideFromContextListeners() which makes invisible for listeners.
...
2. Made sure that ContextListener.contextCreated is called only once. After a resent change to call the method from Context.enter, not from Context constructor the method would be called each time on first enter which broke the debugger.
3. Using new listener utilities from Kit instead of ListenerArray methods that would create a special storage object only if there is more then one listener.
2003-10-22 08:01:46 +00:00
igor%mir2.org
0e4347e841
Added JavaDoc for listener utilities
2003-10-22 07:57:49 +00:00
dbaron%dbaron.org
99ee03d000
Convert CR-LF line endings to LF.
2003-10-22 07:30:52 +00:00
brendan%mozilla.org
eb925a7246
Check in rogerl's big perf patch (85721).
2003-10-22 07:01:50 +00:00
brendan%mozilla.org
a15916b480
Add __noSuchMethod__ handler support, and clean up js_ValueToFunction/js_ReportIsNotDefined error diagnosis hard cases (196097, r=sparky).
2003-10-22 06:26:03 +00:00
caillon%returnzero.com
66caced69a
Re-land patch for bug 83536, merging principal objects.
...
Also includes fixes from bug 216041.
r=bzbarsky
sr=jst
2003-10-21 22:11:49 +00:00
tor%cs.brown.edu
6f00139216
Bug 153586 - add js callback to convert native string to unicode, use
...
for date.toLocale*String. r=jst, sr=brendan
2003-10-21 18:03:04 +00:00
igor%mir2.org
368bd47f1e
Introduction of org.mozilla.javascript.Kit to contain generic support utilities.
2003-10-21 13:43:22 +00:00
igor%mir2.org
8c9720b2b3
Use getPrototype instead of explicit reference to this.prototype
2003-10-21 13:43:21 +00:00
igor%mir2.org
31bc498af4
Added readUrl method to shell
2003-10-21 09:13:59 +00:00
igor%mir2.org
d6cd0b4569
Reuse results of method.getParameterTypes() and better hash code for javaAdapterSignature.
2003-10-20 14:11:08 +00:00
igor%mir2.org
0e47d37a12
Count syntax error in TokenStream directly instead of going through Context object so it would be possible to use TokenStream without instantiating Context.
2003-10-20 14:06:12 +00:00
igor%mir2.org
36c079aa4c
Cosmetics: indentation fixes
2003-10-20 14:02:53 +00:00
igor%mir2.org
136718b2e1
1. Static hash table in JavaAdapter is replaced by a non-static fields in GlobalScope.
...
2. NativeObject implements just Serializable, not Externalizable interface to simplify serialization.
2003-10-19 09:59:52 +00:00
igor%mir2.org
2d87a134ca
Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=222635 :
...
Now activation is always properly removed under the debugger.
2003-10-17 18:24:29 +00:00
igor%mir2.org
d939e7224e
I changed FunctionObject and ScriptableObject to use MemberBox wrapper for native methods, getters and setters that allowed to get following:
...
1. Method serialization code in MemberBox takes care of all serialization so ScriptableObject and FunctionObject does not need anything on its own.
2. Invoker optimization is extended to getters and setters in ScriptableObject.
3. Recovery from IllegalAccessException is extended to all cases of method invocation via reflection.
4. All error wrapping happens in a single class so FunctionObject and ScriptableObject does not need to wary about it.
2003-10-16 14:27:53 +00:00
pschwartau%netscape.com
2049f8f1b7
Skip new tests that use SpiderMonkey's f.caller property (non-ECMA).
2003-10-16 04:08:38 +00:00
brendan%mozilla.org
45f871a076
Fix f.call and f.apply so f.caller skips those natives, to match IE (222029, r=shaver).
2003-10-16 03:30:18 +00:00
igor%mir2.org
d4413688b0
Updated ftp links to the download files due ftp server reorganization
2003-10-15 18:13:33 +00:00
brendan%mozilla.org
8a74bd32a6
Fix comment bug reported by timeless (222055).
2003-10-13 23:25:48 +00:00
pschwartau%netscape.com
d764fcd48b
Initial add. Regression test for bug 222029.
2003-10-13 22:23:17 +00:00
pschwartau%netscape.com
e21b28f1d4
Whitespace fix.
2003-10-13 20:56:55 +00:00
pschwartau%netscape.com
d3607e4a9d
Initial add. Regression test for bug 222029.
2003-10-13 20:18:46 +00:00
brendan%mozilla.org
ef6607007f
Expand tabs, add assertion.
2003-10-13 18:38:50 +00:00
igor%mir2.org
4b876ea459
Code to create invoker master instance is placed into Invoker itself since FunctionObject does not need to know which classes stays behind the implementation.
2003-10-13 16:04:20 +00:00
igor%mir2.org
c21ab0c7a0
FunctionObject.convertArg is split into FunctionObject.getTypeTag() and FunctionObject.convertArg version taking that tag for better error reporting and performance since the tag can be cached and an expensive sequence of if and instanceof to check for the type would be replaced by a simple switch.
2003-10-13 16:02:35 +00:00
igor%mir2.org
064afe0a07
Run ContextListener.contextCreated from Context.enter(), not Context constructor. In this way listeners will not be invoked for Context that are never associated with a thread and contextCreated will be more symmetric with Context.contextReleased.
2003-10-13 15:57:18 +00:00