pschwartau%netscape.com
4f11157aa4
Don't ever run shell.js files as tests; they are only utility files.
...
git-svn-id: svn://10.0.0.236/trunk@132745 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-31 01:01:20 +00:00
pschwartau%netscape.com
b831a9b871
Initial add. Regression test for bug 177314.
...
git-svn-id: svn://10.0.0.236/trunk@132739 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-30 20:34:13 +00:00
igor%mir2.org
861877b9a6
Fixing 177314:
...
TokenStream.java: third octal digit is a part of the octal escape in strings only if the result is <= 0377.
resources/Messages.properties: removal of unused msg.oct.esc.too.large
git-svn-id: svn://10.0.0.236/trunk@132697 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-30 09:20:00 +00:00
mstoltz%netscape.com
51f2a63b0c
Bug 168316 - When calling from Java into JS, add a "dummy" JS stack frame with
...
principal information for the security manager. r=dveditz, sr=jst, a=chofmann.
git-svn-id: svn://10.0.0.236/trunk@132679 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-30 03:15:59 +00:00
pschwartau%netscape.com
d00fdf43c7
Initial add. Testcases created by Brendan in the course of fixing bug 96526.
...
git-svn-id: svn://10.0.0.236/trunk@132676 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-30 02:09:53 +00:00
pschwartau%netscape.com
d57f3b3c1b
Initial add. Utility file needed for certain tests in js/tests/js1_5/Expressions/.
...
git-svn-id: svn://10.0.0.236/trunk@132675 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-30 02:08:46 +00:00
pschwartau%netscape.com
0be6e09dd7
Fixed small bug in reporting of skipped tests.
...
git-svn-id: svn://10.0.0.236/trunk@132576 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-28 03:44:09 +00:00
pschwartau%netscape.com
65b6aa9482
Improving efficiency by calling xp_path() as little as possible. Also, never call xp_path() on a user-provided path.
...
Improving consistency of style in the get_xxx_engine_command() functions.
git-svn-id: svn://10.0.0.236/trunk@132575 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-28 03:31:03 +00:00
pschwartau%netscape.com
8f5f8e39bb
Improving efficiency. Make $win_sep a global variable so we only have to call get_win_sep() once. And then, only use $win_sep if it differs from $path_sep.
...
git-svn-id: svn://10.0.0.236/trunk@132551 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-26 01:24:21 +00:00
pschwartau%netscape.com
6004ce8fd0
Removing two calls to xp_path(). They are unnecessary, since xp_path() gets called again later in the program on the same paths. This also fixes a couple of new bugs. Rev 1.41 of jsDriver made xp_path() more subtle on Windows: it may now return paths containing backslashes instead of forward slashes. But backslashes cause the Perl methods |join| and |grep|, both of which are used in jsDriver, to fail. So we are now delaying any calls to xp_path() until after those methods are used.
...
git-svn-id: svn://10.0.0.236/trunk@132545 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-26 00:11:50 +00:00
beard%netscape.com
0c3c8a8afa
don't require release specific configuration for Darwin [not part of build]
...
git-svn-id: svn://10.0.0.236/trunk@132487 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-25 01:01:34 +00:00
brendan%mozilla.org
e6437f1536
Fix bug where lightweight function expression-statement result would contaminate caller result via js_Interpret's *result pigeon-hole, via better JSOP_POP vs. JSOP_POPV instruction selection (176125, r=shaver, a=dbaron).
...
git-svn-id: svn://10.0.0.236/trunk@132470 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-24 21:57:40 +00:00
igor%mir2.org
5d19c06ee6
Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=173906 : change Codegen.visitCall to check for dynamic scope flag when calling
...
direct call target
git-svn-id: svn://10.0.0.236/trunk@132459 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-24 10:05:36 +00:00
igor%mir2.org
8d991ff9c8
Using ThreadLocal under JDK >= 1.2 in Context.enter/Context.exit so they do not need to synchronize on global Context.threadContexts object as java.lang.ThreadLocal allows to associate a Context instance with the current thread in a completely synchronization-free way.
...
When ThreadLocal is not available (JDK 1.1), the old way of doing things is used.
git-svn-id: svn://10.0.0.236/trunk@132458 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-24 10:04:30 +00:00
igor%mir2.org
e148a3be8f
I modified Context.enter/Context.exit to remove explicit synchronization on threadContexts as implicit implicit synchronization when calling threadContexts.get/threadContexts.put/threadContexts.remove is enough to ensure thread safety. It reduces time spend in synchronized code so Context.enter/Context.exit is less problematic with script execution on many threads.
...
The change also allows with simple modifications of Context.getCurrentContext and Context.setThreadContext to use java.lang.ThreadLocal from JDK 1.2 to remove any synchronization on global data structures during Context.enter/Context.exit/Context.getCurrentContext.
git-svn-id: svn://10.0.0.236/trunk@132398 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-23 09:56:26 +00:00
igor%mir2.org
68e4da5809
Fixing http://bugzilla.mozilla.org/show_bug.cgi?id=173180
...
Merges utf8ToOneUcs4Char body into the decode method and adds checks
for overlongs to follow SpiderMonkey.
git-svn-id: svn://10.0.0.236/trunk@132378 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-22 21:22:44 +00:00
waldemar%netscape.com
c5f35ee917
Fixed buffer overrun bug 174555 r=brendan, a=shaver
...
git-svn-id: svn://10.0.0.236/trunk@132275 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-18 23:03:16 +00:00
waldemar%netscape.com
a48658c6ab
MacOSX version of the build files; work with CodeWarrior 8.2 to create a Carbon JSRef. Doesn't build mach-o yet.
...
git-svn-id: svn://10.0.0.236/trunk@132206 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-18 01:40:40 +00:00
pschwartau%netscape.com
62eebb4ebc
Whitespace cleanup.
...
git-svn-id: svn://10.0.0.236/trunk@132160 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-17 19:25:40 +00:00
seawood%netscape.com
f9eb727003
Define WIN32_LEAN_AND_MEAN globally for win32 builds.
...
Thanks to Stephen Walker <walk84@yahoo.com> for the patch.
Bug #172898 r=cls a=asa
git-svn-id: svn://10.0.0.236/trunk@132136 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-17 06:47:01 +00:00
dbradley%netscape.com
1d42b56652
Bug 173146 - add support to XPConnect for IDispatch interface. r=jband@netscape.com, sr=brendan@mozilla.org, a=shaver@mozilla.org
...
NOTE: Most of this code is not built by default
git-svn-id: svn://10.0.0.236/trunk@132135 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-17 05:29:03 +00:00
brendan%mozilla.org
3e1fb18591
Comment improvements motivated by bug 173797, no code changes.
...
git-svn-id: svn://10.0.0.236/trunk@131921 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-13 19:08:07 +00:00
pschwartau%netscape.com
4910885c7c
Remove the -x check on the absolute path to xpcshell. In Perl 5.005 on Windows, the -x operator returns |false| on absolute paths, even if they are valid.
...
git-svn-id: svn://10.0.0.236/trunk@131864 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-12 02:43:17 +00:00
pschwartau%netscape.com
41a5b57b6e
Use -x &xp_path() more consistently.
...
git-svn-id: svn://10.0.0.236/trunk@131862 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-12 02:08:02 +00:00
pschwartau%netscape.com
48b2acdc84
Re-factoring the last fix into the existing function xp_path().
...
git-svn-id: svn://10.0.0.236/trunk@131860 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-12 01:57:16 +00:00
pschwartau%netscape.com
c8fbb2c528
Don't hard-code "\"as the path separator for Windows (rev. 1.36). Some Windows shells (e.g. Cygwin 1.1.8) require "/".
...
git-svn-id: svn://10.0.0.236/trunk@131839 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-11 23:31:23 +00:00
pschwartau%netscape.com
5266477dc7
Improving readability.
...
git-svn-id: svn://10.0.0.236/trunk@131620 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-09 20:43:35 +00:00
brendan%mozilla.org
2829f1a1c5
Don't redefine date_methods in each instance created from native code via js_NewDateObject{,Msec}, shadowing the perfectly fine date_methods in Date.prototype (173423, r=hyatt).
...
git-svn-id: svn://10.0.0.236/trunk@131578 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-09 05:50:23 +00:00
pschwartau%netscape.com
0aa976c37c
Initial add. Regression test for bug 172699.
...
git-svn-id: svn://10.0.0.236/trunk@131344 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-08 00:37:49 +00:00
timeless%mac.com
7fb125a318
Bug 172846 QueryInterface should not throw Components.results.NS_NOINTERFACE for Components.interfaces.nsISupports
...
r=caillon sr=bz
git-svn-id: svn://10.0.0.236/trunk@131276 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-06 23:14:25 +00:00
rogerl%netscape.com
d7690d9b03
Duh. Fixed C++ style comment, sorry.
...
git-svn-id: svn://10.0.0.236/trunk@131224 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-05 04:38:42 +00:00
rogerl%netscape.com
c798f05273
Bug #172699 . r=rogerl, sr=brendan. Detect illegal (overlong) utf-8.
...
git-svn-id: svn://10.0.0.236/trunk@131223 18797224-902f-48f8-a5cc-f745e15eee43
2002-10-05 04:05:56 +00:00
dbaron%fas.harvard.edu
0aaa1704e7
Porting fixes for gcc trunk (to become 3.3): Eliminate C-only option from CXXFLAGS. Don't use pasting for things that are still separate tokens. Don't pass objects of non-POD type through |...|. Don't include strstream.h, which isn't used anymore anyway. b=170250 r=bbaetz sr=alecf
...
git-svn-id: svn://10.0.0.236/trunk@130797 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-30 14:18:27 +00:00
bryner%netscape.com
4f8582db8e
Bug 165602 - define MACOS_DEPLOYMENT_TARGET (default to 10.1) for mach-o, and don't test for or reference 10.2-specific functions when building for 10.1. r=cls, wtc.
...
git-svn-id: svn://10.0.0.236/trunk@130650 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-28 09:19:58 +00:00
pschwartau%netscape.com
73308ebb51
Simplifying test.
...
git-svn-id: svn://10.0.0.236/trunk@130639 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-28 02:52:28 +00:00
alecf%netscape.com
18e828cdfc
remove JSLoader.xml as its no longer part of the build
...
git-svn-id: svn://10.0.0.236/trunk@130595 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-27 18:33:38 +00:00
alecf%netscape.com
b05dbf8f5b
fix for bug 79175, merge jsloader into xpconnect
...
r=dbradley, sr=brendan
git-svn-id: svn://10.0.0.236/trunk@130594 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-27 18:33:02 +00:00
igor%mir2.org
3f28ac64b8
Add isGeneratedScript to DebuggableScript and its implementations to allow debuger to distinguish between scripts and functions coming from external files or ones defined vvia exec or new Function()
...
git-svn-id: svn://10.0.0.236/trunk@130529 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-26 20:19:39 +00:00
igor%mir2.org
1802d4ebe7
Fixing 169830: I replaced in jsFunction_concat calls to hasLengthPropert by ScriptRuntime.instanceOf and as hasLengthPropert is no longer used, I removed it as well.
...
git-svn-id: svn://10.0.0.236/trunk@130356 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 15:57:58 +00:00
igor%mir2.org
61f94cb3bf
In newObject pass top level scope to the constructor, not ctor.getParentScope() to take into account hasCompileFunctionsWithDynamicScope()
...
git-svn-id: svn://10.0.0.236/trunk@130351 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 14:14:00 +00:00
igor%mir2.org
537ca4e14f
In getClassPrototype replace ScriptRuntime.getTopLevelProp by getProperty to avoid double call to getTopLevelScope
...
git-svn-id: svn://10.0.0.236/trunk@130349 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 14:10:53 +00:00
igor%mir2.org
98b5068af7
In jsFunction_concat inline ScriptRuntime.newObject to throw JavaScriptException if array constructor throws one and avoid double call to ScriptableObject.getTopLevelScope()
...
git-svn-id: svn://10.0.0.236/trunk@130348 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 14:08:22 +00:00
igor%mir2.org
1304179314
Change ScriptRuntime.getTopLevelPropery to call ScriptableObject.getProperty in place of explicit loop over the prototype chain. It makes sure that all Scriptable.get(property, start) on the prototype chain are called with a proper start value.
...
Add getExistingCtor to get existing constructor property or throw an exception.
git-svn-id: svn://10.0.0.236/trunk@130347 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 14:05:24 +00:00
igor%mir2.org
653b9e5706
Remove the minimalAllocation field and instead pre-allocate data array in the constructor if necessary.
...
git-svn-id: svn://10.0.0.236/trunk@130339 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 11:21:19 +00:00
igor%mir2.org
78f34a47e7
Change NativeArray.getLengthProperty to return long instead of double as its results are always uint32 and adjust its usage accordingly . Fix Context.getElements documentation to state that it returns empty array, not null, if object does not have a reasonable length property.
...
git-svn-id: svn://10.0.0.236/trunk@130338 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-24 09:29:27 +00:00
brendan%mozilla.org
1c2f1880d2
- String.prototype.match, .search, and .replace all use match_or_replace as
...
a common subroutine, but only replace might need to dereference the regexp
created from a non-regexp-type argument, which is converted to string and
compiled into a regexp data struct unowned by any rooted object. This case
was broken: a dangling GlobData.regexp pointer could be dereferenced in the
"lambda replace" code under str_replace, in find_replen, *after* the call
to match_or_replace had destroyed the regexp and returned to str_replace.
Bug 167658 reported the symptoms.
- Consolidate GlobData members into a flags word, avoiding yet another ad hoc
paramter to m_or_r (forceFlat).
- Use a local root in str_match to avoid adding and removing a global root.
git-svn-id: svn://10.0.0.236/trunk@130257 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-23 18:33:17 +00:00
pschwartau%netscape.com
97e39025a6
Initial add. Regression test for bug 170193.
...
git-svn-id: svn://10.0.0.236/trunk@130222 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-22 22:11:40 +00:00
brendan%mozilla.org
63662b25cc
Fix middle-delete-function-with-duplicate-formals (170193, r=shaver).
...
git-svn-id: svn://10.0.0.236/trunk@130219 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-22 19:34:07 +00:00
pschwartau%netscape.com
4dc1f5add5
Initial add. Regression test for bug 169534.
...
git-svn-id: svn://10.0.0.236/trunk@130197 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-21 03:17:25 +00:00
brendan%mozilla.org
f948d775f1
Fix Array.prototype.concat to special-case and flatten Array arguments (including |this|) only, not any object with array-like .length (169795, r=rogerl, who fixed my tired morning patch).
...
git-svn-id: svn://10.0.0.236/trunk@130160 18797224-902f-48f8-a5cc-f745e15eee43
2002-09-20 18:45:05 +00:00