Commit Graph

1754 Commits

Author SHA1 Message Date
cbegle%netscape.com
ab0340f19f update script to report an error if no tests passed.
git-svn-id: svn://10.0.0.236/trunk@48930 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 23:00:38 +00:00
cbegle%netscape.com
b6325dcb92 just changing the section name so it doesn't break norris's script.
git-svn-id: svn://10.0.0.236/trunk@48929 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 22:59:20 +00:00
norris%netscape.com
15b6d9b0f8 Fix some Array tests in the ecma suite.
git-svn-id: svn://10.0.0.236/trunk@48920 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 20:37:56 +00:00
norris%netscape.com
94fd9ef137 change FAILED color to red
git-svn-id: svn://10.0.0.236/trunk@48906 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 17:26:22 +00:00
norris%netscape.com
d2c3e4add4 Add test driver for rhino.
git-svn-id: svn://10.0.0.236/trunk@48905 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-23 17:24:14 +00:00
rogerl%netscape.com
c5c6ab5de5 Can't assume object in reportConversionError is scriptable, so call more
generic java.object.toString instead.


git-svn-id: svn://10.0.0.236/trunk@48869 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 22:06:14 +00:00
norris%netscape.com
99d0d967f9 Allow a java.lang.String to be converted to a primitive string in getDefaultValue
git-svn-id: svn://10.0.0.236/trunk@48862 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 16:30:49 +00:00
norris%netscape.com
343f60c0f0 Fix "wapper".
git-svn-id: svn://10.0.0.236/trunk@48861 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 16:25:21 +00:00
beard%netscape.com
49c1f19806 JavaAdapter no longer uses FlattenedObject, since the prototype is simply the LiveConnect wrapper.
git-svn-id: svn://10.0.0.236/trunk@48850 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 08:22:53 +00:00
beard%netscape.com
f8d3e2c162 JavaAdapter no longer uses FlattenedObject, since the prototype is simply the LiveConnect wrapper. Simplified callMethod to only call Context.enter() if methodId property is defined in Scriptable object.
git-svn-id: svn://10.0.0.236/trunk@48849 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 08:22:47 +00:00
brendan%mozilla.org
0eaf6f0e91 - Enable JS_HAS_NEW_OBJ_METHODS (Object.prototype.hasOwnProperty, isPrototypeOf
and propertyIsEnumerable) for JS1.5.
- Optimize obj_propertyIsEnumerable to avoid extra lookup code bloat, requiring
  fix to js_GetAttributes (unset out param on successful early retunr) that it
  exposed.
- Use more righteous else-if style in shaver's jsarray.c change.


git-svn-id: svn://10.0.0.236/trunk@48796 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 05:54:44 +00:00
shaver%netscape.com
4ae847a467 new Array("string") should be ["string"], not silent failure (14545, r=brendan)
git-svn-id: svn://10.0.0.236/trunk@48781 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 04:36:28 +00:00
beard%netscape.com
dde300d73f renamed "name" parameter "adapterName", removed explicit StringBuffer in favor of "adapter" + serial++ for clarity.
git-svn-id: svn://10.0.0.236/trunk@48775 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:54:00 +00:00
shaver%netscape.com
845c94e8fb add componentType to nsIModule::RegisterSelf
git-svn-id: svn://10.0.0.236/trunk@48763 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 03:18:27 +00:00
beard%netscape.com
7f1bd1de61 changed createAdapterClass() to only generate methods for properties defined in the wrapped object itself, not for properties defined in prototypes. This makes sense, as the prototype for the wrapped object becomes the LiveConnect wrapper, thus prototype properties become inaccessible anyway.
git-svn-id: svn://10.0.0.236/trunk@48720 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-22 01:32:05 +00:00
shaver%netscape.com
19ab9fe989 having evicted default.js from components/, we reclaim our *.js birthright
git-svn-id: svn://10.0.0.236/trunk@48645 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 22:10:03 +00:00
brendan%mozilla.org
cedb40ec6b JS_VERSION 140 lacked JS_HAS_NUMBER_FORMATS #define.
git-svn-id: svn://10.0.0.236/trunk@48632 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 21:33:38 +00:00
shaver%netscape.com
781208ba0a turn on JS loader on Windows
git-svn-id: svn://10.0.0.236/trunk@48597 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 20:08:38 +00:00
shaver%netscape.com
2254047a43 fixed Windows makefile goop and fixed __stdcall issue
git-svn-id: svn://10.0.0.236/trunk@48591 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 19:42:09 +00:00
rogerl%netscape.com
fcc6869f54 ECMA errors as exceptions changes - conformance to latest spec for
hierarchy and names etc. Added attempt to make the base exceptions be
instanceof equal across contexts.


git-svn-id: svn://10.0.0.236/trunk@48586 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 18:58:51 +00:00
shaver%netscape.com
5f40481fce Errors-as-Exceptions and catchguards, because people want/need them
git-svn-id: svn://10.0.0.236/trunk@48585 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 18:48:43 +00:00
brade%netscape.com
e0e37764f7 not currently part of the build (a=leaf); add libraries for xpcom and js so optimized will link
git-svn-id: svn://10.0.0.236/trunk@48580 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 15:55:56 +00:00
brade%netscape.com
a2dc69b2c1 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@48579 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 14:55:39 +00:00
shaver%netscape.com
5b4ac98c99 define some key names locally until we export them properly from xpcom
git-svn-id: svn://10.0.0.236/trunk@48578 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 14:54:39 +00:00
shaver%netscape.com
0cd29dc3b4 remove unused file and add initial windows build foo
git-svn-id: svn://10.0.0.236/trunk@48577 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 14:43:45 +00:00
shaver%netscape.com
d18a0d7017 add include of nsIModule.h -- why was this working before?
git-svn-id: svn://10.0.0.236/trunk@48576 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 14:38:50 +00:00
shaver%netscape.com
89681d5ada fix =/== idiocy, abort if we fail to get runtime and better diagnostics
git-svn-id: svn://10.0.0.236/trunk@48575 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 14:36:40 +00:00
waterson%netscape.com
ddb97d50f3 Add some curly braces so that the rest of the world can run.
git-svn-id: svn://10.0.0.236/trunk@48492 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 04:20:17 +00:00
shaver%netscape.com
571a500d89 build JS component loader by default
git-svn-id: svn://10.0.0.236/trunk@48465 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:09:33 +00:00
shaver%netscape.com
1f969319fb fix typo before I inflict it on the world
git-svn-id: svn://10.0.0.236/trunk@48464 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 01:08:21 +00:00
brendan%mozilla.org
1041763b2e - Bumped default compile-time JS version from 1.4 to 1.5.
- Add JS1.5 getter/setter support in all its glory:

  * getter function SN() {return ++x} at top-level or as a closure binds an SN
    property getter than returns the incremented value of x.  Likewise for
    setter function SN(y) {return y = x}.

  * getters and setters may be defined in an object literal:
      o = {p getter:function() {return ++this.x},
           p setter:function(y){return this.x = y},
           x:42};

  * getter= and setter= operators (compound tokens) may be used to bind getter
    and setter properties dynamically:
      o = new Object;
      o.p getter= function() {return ++this.x};
      o.p setter= function(y){return this.x = y};
      o.x = 42;

    Waldemar is concerned that this form will collide semantically with JS2, so
    I am not committing to keeping it in JS1.5.  I'd like to check my code in
    ASAP so shaver can use it, and I'd also like to see this form get used (or
    not) during Mozilla betas.  Caveat emptor, and if you find this "dynamic"
    or "imperative" form necessary and hard to substitute, please let me know.
    If this proves important to users, then I think JS1.5 should keep it.

- Cleaned up property flags (in a binary-incompatible fashion -- who cares?) by
  eliminating JSPROP_ASSIGNHACK and JSPROP_TINYIDHACK.

- Added JS_DONT_PRETTY_PRINT flag to be ORed with the indent argument to the
  several JS_Decompile*() API calls.  This avoids any newlines or identation in
  the decompiled string.
 
- Improved and extended (for getter/setter non-reservation) scanner lookahead
  by using a circular (power-of-2 sized) token buffer.

- Fix ECMA Edition 3 deviation where function f(){function g(){}} bound f.g by
  mistake (it should arrange to make a closure named g in activations of f, but
  it should not bind a property of function f).


git-svn-id: svn://10.0.0.236/trunk@48436 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-21 00:13:48 +00:00
rogerl%netscape.com
d2a5cbb6d0 (Bug #13416)
Turned off 'super' keyword - was letting through some cut'n'pasted java
code quietly and blowing big chunks out of the codegen/interpreter later.
Anybody know why 'super' had an interesting value here? - there was no
support for it on any path that I could see.


git-svn-id: svn://10.0.0.236/trunk@48417 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 22:21:24 +00:00
norris%netscape.com
e8e1ce7e96 Changes necessary to generate adapter classes to files with associated optimizer package.
git-svn-id: svn://10.0.0.236/trunk@48397 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 21:16:45 +00:00
jband%netscape.com
553afd024f fix for bug 13426 - can now do 'new Components.classes.foo()' to create a new instance of a wrapped native
git-svn-id: svn://10.0.0.236/trunk@48380 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 20:59:38 +00:00
jband%netscape.com
c37e030b42 fix a warning and add JS stack dumper with a test.
git-svn-id: svn://10.0.0.236/trunk@48337 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 07:32:32 +00:00
jband%netscape.com
d9fb78866e - Changed the interface for getting the interface_is argnum.
- Merged the typelib types for array and array_with_length.
- Added typelib types for string_with_size and wstring_with_size
- Fixed array param conversion and cleanup - using two passes over the params where necessary.
- Added array conversions when calling wrapped JS objects.
- Added expanded array tests.
- Avoid repeated atomization of 'value' property name.


git-svn-id: svn://10.0.0.236/trunk@48305 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-20 02:51:16 +00:00
mccabe%netscape.com
69a8cf7c7b Fix to 7610. Modify xpidl compiler to add 'const' to the method signature for generated attribute setter methods for string, wstring and nsid attributes.
As this changed the generated interface signatures, I had to change all of the uses to avoid bustage.  Any corners of the browser that aren't built by default, or that I haven't discovered how to build, may be at risk of bustage if they use string or wstring attributes.  (This could mean blackwood; sorry, guys!)

Many thanks to Alec Flett (alecf@netscape.com) for preparing diffs for the mailnews portion of the signature changes; thanks also to Ariel Backenroth (arielb@rice.edu) and Mike Shaver (shaver@mozilla.org) for help with updating the tree with NS_DECL_NSIFOO macros; everwhere where one of these macros was used was one less place I had to manually add 'const'.

Also removed extraneous space from generated method signatures, leftover from Brendan's capitalization spam, and made 'const decl must be of type short or long' an error rather than just a warning.


git-svn-id: svn://10.0.0.236/trunk@48284 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-19 23:46:35 +00:00
slamm%netscape.com
46297b54e1 Fix build whine.
git-svn-id: svn://10.0.0.236/trunk@48140 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 01:15:57 +00:00
slamm%netscape.com
53b65fabbe Add braces to avoid "ambiguous else" warning.
git-svn-id: svn://10.0.0.236/trunk@48105 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:13:02 +00:00
slamm%netscape.com
c3dbdf1724 Fix build warning.
git-svn-id: svn://10.0.0.236/trunk@48104 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:10:11 +00:00
slamm%netscape.com
51041aed57 Fix build warnings, but get it right.
git-svn-id: svn://10.0.0.236/trunk@48103 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:09:24 +00:00
colin%theblakes.com
78f161595d Order of evaluation is undefined, hence two ++ in one statement is bad
git-svn-id: svn://10.0.0.236/trunk@48098 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-18 00:03:28 +00:00
slamm%netscape.com
499ecfdc90 Fix build warning.
git-svn-id: svn://10.0.0.236/trunk@48095 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:57:47 +00:00
brendan%mozilla.org
a03109c89c Fix va_arg abusages (13676, thanks to ajoshi@glue.umd.edu and Franz.Sirl@munich.netsurf.de for the patch).
git-svn-id: svn://10.0.0.236/trunk@48090 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 23:46:20 +00:00
waldemar%netscape.com
6974f5833b First Checked In.
git-svn-id: svn://10.0.0.236/trunk@47985 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 19:45:20 +00:00
waldemar%netscape.com
8688b2f0de NOT IN BUILD. Made JSRef work as a Macintosh MPW tool
git-svn-id: svn://10.0.0.236/trunk@47984 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 19:45:07 +00:00
norris%netscape.com
9b053816bd Fix comments.
git-svn-id: svn://10.0.0.236/trunk@47975 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 16:38:51 +00:00
norris%netscape.com
51f99a463e fix comment
git-svn-id: svn://10.0.0.236/trunk@47974 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 16:37:35 +00:00
colin%theblakes.com
6c71031eb2 Remove OpenVMS specific code, its no longer needed
git-svn-id: svn://10.0.0.236/trunk@47968 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 11:53:11 +00:00
norris%netscape.com
a2d2f20af7 Clearer example.
git-svn-id: svn://10.0.0.236/trunk@47929 18797224-902f-48f8-a5cc-f745e15eee43
1999-09-17 06:12:45 +00:00