beard
6be3eb992d
Added XP_MAC changes to export the JSObject native methods.
1998-06-23 02:03:10 +00:00
beard
5afc929f9d
Added XP_MAC changes for struct-based jlongs.
1998-06-23 02:01:53 +00:00
beard
129adcc229
Added prosdep.h to get strdup prototype. Corrected JSJ_InitJSContext to match its prototype.
1998-06-23 01:59:26 +00:00
beard
883907e189
MacOS/MSL malloc also needs non-zero size.
1998-06-23 01:57:05 +00:00
beard
8506dd7f3a
Added XP_MAC initialization function.
1998-06-23 01:55:31 +00:00
beard
9adfde6a23
Added Mac build instructions.
1998-06-23 01:54:20 +00:00
beard
0d6134c989
First Checked In.
1998-06-23 01:48:49 +00:00
beard
3c43366f5f
First Checked In.
1998-06-23 01:31:44 +00:00
norris
c33b5f5ee5
(Not part of Communicator build.)
...
Fix crash occurring on most tests, nits from brendan code review.
1998-06-22 17:53:05 +00:00
fur
002ea80f8b
Minor updates to build instructions and file descriptions
1998-06-22 17:41:18 +00:00
fur
6699e308bb
[Not used for Mozilla builds]
...
These project files were just checked in temporarily and are replaced by the
LiveConnectShell project files located in the js/ref/liveconnect subdirectory.
1998-06-22 17:28:12 +00:00
fur
568e38aca4
[Doesn't build with mozilla]
...
Java files associated with new LiveConnect.
1998-06-22 17:23:57 +00:00
fur
c6c68e26aa
Added the getClass() method for backward-compatibility with old LiveConnect.
1998-06-21 06:51:27 +00:00
fur
2e70b63717
Removed all ifdef NO_JSOBJECTOPS code. This was older code that used the
...
"classic" JSAPI, rather than the new, faster JSObjectOps API.
1998-06-21 05:17:15 +00:00
fur
d5b0774f7c
[Not in the mozilla build]
...
This new vendor-neutral version of LiveConnect is designed to replace the older
one in the js/jsj directory, which only works with the Netscape JVM. It is part
of the OJI initiative.
1998-06-20 17:46:42 +00:00
mccabe
54e0d585a2
ECMA (sort of) fix to 156615, platform-dependent troubles on Solaris.
...
There was a check in our mini-nspr against asking the OS time services
what the DST offset was for time 0... but the check didn't do what the
comment said it did. So we got the wrong DST offset for... (drum roll
please) the two seconds on either side of the eve of 1970 GMT.
I have a similar fix ready for prmjtime.c, but I'll wait until the
stability freeze settles down.
1998-06-20 01:21:01 +00:00
norris
16d06a5647
(Not part of Communicator build.)
...
Add implementation version API call.
1998-06-19 23:47:07 +00:00
norris
dc578c90c0
(Not part of Communicator build.)
...
Fix 153640 monkey crash calling Math as function or constructor
Just added a null pointer check
1998-06-19 22:21:36 +00:00
norris
eafb2d2e3a
(Not part of Communicator build.)
...
Fix 123724 hippo: problems declaring var in an eval statement
This ended up being more complex than I initially thought it would be.
See comments in jsparse.c.
1998-06-19 21:52:14 +00:00
mlm
16c4667970
Merge Win16 "fixes" from Dogbert4xDevelopment_BRANCH
...
- Reorder identical code
- Move scope of local variable
- ifdef out stderr
1998-06-19 20:13:15 +00:00
norris
389e7da848
(Not part of Communicator build.)
...
Change C++ keyword "catch" (and Java keyword "finally" for good measure)
to other identifiers to help out embedders calling JS from C++.
1998-06-18 23:43:51 +00:00
norris
4a7ce61340
(Not part of Communicator build.)
...
More functionality for debug print functions.
1998-06-18 00:13:08 +00:00
norris
18a4346991
(Not part of Communicator build.)
...
This comment is for checkin of version 1.8: mistakenly gave wrong comment
for that version.
Fix 123724 hippo: problems declaring var in an eval statement
The problem was that Variable() in jsparse.c used the scope from calling
js_FindVariableScope to determine whether or not to convert the operator
to GETVAR, but LookupArgOrVar did not. This caused a mismatched set and
get in the code generated from the eval script due to the presence of the
var in the function frame.
1998-06-18 00:11:51 +00:00
norris
a004313509
(Not part of Communicator build.)
...
More functionality for debug print functions.
1998-06-18 00:04:38 +00:00
brendan
927c39b448
- Fix function in with statement to form a closure with the right scope chain
...
on activation (120172, mlm).
- Use #ifdef CHECK_RETURN_EXPR to hide CheckFinalReturn as well as its calls.
- 80th column tyranny, typedef symmetry, other cosmetics.
1998-06-17 19:37:53 +00:00
mccabe
ce9c2ffb45
(Not part of the mozilla build)
...
Added a guard against casting infinity->int, towards porting to alpha linux.
1998-06-17 19:36:29 +00:00
norris
878cbe9517
(Not part of Communicator build.)
...
Fix warning messages for lack of function prototype.
1998-06-17 16:23:29 +00:00
norris
94b9b8fc0e
(Not part of Communicator build)
...
Add ability for scripts to access their arguments.
1998-06-16 23:10:57 +00:00
norris
45dbeb0589
(Not part of Communicator build.)
...
Fix 129824 monkey: evaling a function with many arguments fails
1998-06-16 18:36:57 +00:00
mccabe
c5c964116c
Undid the ECMA fix that disallowed '08' and '09' numeric literals. According to the ECMA lexical grammar, these literals should be scanned as two consecutive NUMBER tokens ('0' and '9') - which is always a syntax error under the grammar. Unfortunately, the javascript engine has supported these literals (with mathematical values 8 and 9) in the past, and they're likely to crop up in date code... so we probably need to remove this fix. This leaves us a superset of ECMA - by accepting these literals, we accept scripts that are not valid ECMA scripts.
1998-06-13 01:10:30 +00:00
norris
d1da694218
(Not part of Communicator build.)
...
Tweak last fix not to depend on size of char.
1998-06-12 22:20:06 +00:00
norris
3aa9bf7b95
(Not part of Communicator build.)
...
Fix bug 123802 hippo / js1.2 some regular expression tests fail
1998-06-12 22:17:13 +00:00
norris
25c1c4801f
(Not part of Communicator build.)
...
Fix 111199 ECMA: don't enumerate parseInt.length
1998-06-12 17:22:04 +00:00
mccabe
f17121ba33
(Not part of the gromit/mozilla build.)
...
Added NPL notice.
1998-06-12 00:54:15 +00:00
norris
cd9ff2531d
(Not part of Communicator build.)
...
Fix 123552 Array length updating is incorrect
1998-06-12 00:10:52 +00:00
norris
ef4d653b2f
(Not build as part of Communicator)
...
Fix 123788 test crashes spidermonkey: simple null pointer check
1998-06-12 00:09:08 +00:00
waldemar
5a99338f59
Fixed compiler warning
1998-06-11 20:27:22 +00:00
waldemar
d101f134c6
Fixed bugs 123565, 123874, 122877, 122882, 123560, and 77391, all having to do with various errors in reading integers and floating-point numbers and interpreting whitespace around them. Whitespace was being treated inconsistently in parseInt, parseFloat, and ToNumber; made all of these accept any Unicode whitespace in anticipation of the future ECMA v2.
1998-06-10 21:18:05 +00:00
waldemar
aba6fd1d39
Changed js_strtod and js_strtointeger APIs to fix bugs 123565, 123874, 122877, 122882, 123560, and 77391. Added comments.
1998-06-10 21:14:41 +00:00
waldemar
ca71c238b1
Updated for changed js_strtod and js_strtointeger APIs needed to fix bugs 123565, 123874, 122877, 122882, 123560, and 77391.
1998-06-10 21:13:52 +00:00
waldemar
dc2efa678e
Added js_SkipWhiteSpace.
1998-06-10 21:11:00 +00:00
shaver
29f04506ff
added JS_YieldRequest to API
1998-06-09 21:24:14 +00:00
shaver
debf3ff999
first arg to Script.prototype.exec is scopeobj, not second-with-ignored-first
1998-06-09 17:28:41 +00:00
norris
0565e32750
Fix 123552 Array length updating is incorrect
...
js> a = new Array()
js> a["3.00"] = "three"
three
js> a.length
4
Since "3.00" is not an array index as defined by ECMA, a.length should be 0.
1998-06-09 16:47:00 +00:00
norris
864c2c19a9
Fix bug 104191 "ECMA: multiple params w/ same name":
...
Decompiling "function f(a,b,a) { ... }" would only print two parameters.
1998-06-08 23:41:54 +00:00
mccabe
35af634eff
ECMA fix to bug (93557). When excecuting the Function constructor,
...
treat all the 'arguments arguments' as if they were concatenated
together as a comma-separated list, and treat the list as if it were
the arguments list in a normal function declaration. That is, allow
comments, arbitrary whitespace, etc.
Fixed by introducing a TokenStream instance in the Function contructor
code.
1998-06-08 19:04:17 +00:00
shaver
1827417a5e
added XDR-based compile-and-run examples
1998-06-08 16:16:10 +00:00
fur
baf37945c3
Added jsstddef.h
1998-06-05 17:52:18 +00:00
mccabe
e50bbd58f4
Added a few (JSOp) casts to appease Macintosh compiler workings.
...
Enums are types!
1998-06-04 00:22:55 +00:00
mccabe
3bb24dc54d
Reinstated backed-out changes.
1998-06-03 06:08:21 +00:00