bclary%bclary.com
228735f067
JavaScript Tests - update regression test to support Rhino, bug 398450, by Norris Boyd, not part of the build
...
git-svn-id: svn://10.0.0.236/trunk@237205 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-03 20:56:55 +00:00
nboyd%atg.com
58b50b3158
fix bug 396969: bitwise and shift ops evaluate operands in reverse order, contrary to ECMA-262
...
also avoid generating debugger callbacks for line source for scripts consisting only of comments
git-svn-id: svn://10.0.0.236/trunk@237200 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-03 20:32:11 +00:00
bclary%bclary.com
9ffb895729
Update JS_GetImplementationVersion to 1.8.0 on trunk, bug 380901, ra=brendan
...
git-svn-id: svn://10.0.0.236/trunk@237182 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-03 13:48:01 +00:00
igor%mir2.org
1d235bcf1e
Bug 397210: JSTokenStream is stored in JSParseContext. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@237113 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-02 23:10:09 +00:00
igor%mir2.org
27b680de93
Backing out the patch 397210.
...
git-svn-id: svn://10.0.0.236/trunk@237017 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-01 20:46:10 +00:00
igor%mir2.org
bab33931e0
Bug 397210: JSTokenStream is stored in JSParseContext. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@237014 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-01 20:25:26 +00:00
igor%mir2.org
869ee88eaa
Bug 396758: the system flag is moved from GC flags to JSObject itself. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@237010 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-01 19:11:41 +00:00
bclary%bclary.com
94b72efca0
JavaScript Tests - sync Sisyphus support, bug 398005, not part of the build
...
git-svn-id: svn://10.0.0.236/trunk@237009 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-01 19:10:41 +00:00
mrbkap%gmail.com
f2f7818717
Propagate exceptions from the evalcx context to the outer context so they can be caught. bug 353737, r+a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@236964 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-01 00:43:30 +00:00
mrbkap%gmail.com
790f1eae4d
Implement an iterator hook for cross origin wrappers to avoid wrongly walking up the prototype chain during enumeration. bug 390947, r+a=brendan sr=jst
...
git-svn-id: svn://10.0.0.236/trunk@236962 18797224-902f-48f8-a5cc-f745e15eee43
2007-10-01 00:31:22 +00:00
igor%mir2.org
3c15277231
evalcx uses JS_BeginRequest/JS_EndRequest. bug 398045, r=mrbkap, not a part of the build.
...
git-svn-id: svn://10.0.0.236/trunk@236946 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-30 16:12:15 +00:00
bclary%bclary.com
b1b4b0b367
JavaScript Tests - update spidermonkey-extensions-n.tests, bug 398000, not part of the build
...
git-svn-id: svn://10.0.0.236/trunk@236918 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-29 13:55:22 +00:00
nboyd%atg.com
5c9bc180a3
Patch from Bob Jervis (bjervis@google.com):
...
In reading the LiveConnect spec, it looks like Mark's problem with overloading
methods is due to a bug in Rhino with respect to how LiveConnect is
implemented.
In NativeJavaObject.java, the getConversionWeight method has the case for
JSTYPE_JAVA_ARRAY and JSTYPE_JAVA_OBJECT shares common code. In the
LiveConnect 3 spec, section 3.3.6.1 describes wrapped Java objects, and 3.3.6.2
describes wrapped Java arrays. Mark has a wrapped Java array of byte.
He is trying to call a method that has an overload of byte[] and for byte as
well. It is reporting an ambiguous choice, which is why we needed the syntax
for selecting the overload. BUt it looks like this should not be necessary.
According to the spec, you can pass a wrapped Java object to a primitive (non
boolean) type, but you cnnot do so for a wrapped Java array. Around line 366
in my version of the file, there is a test to account for the JSTYPE_JAVA_ARRAY
for passing to a primitive type. It looks to me like it should return
CONVERSION_NONE for a wrapped array, but it is returning CONVERSION_NONTRIVIAL.
The relevant lines of code are:
case JSTYPE_JAVA_OBJECT:
case JSTYPE_JAVA_ARRAY:
Object javaObj = fromObj;
if (javaObj instanceof Wrapper) {
javaObj = ((Wrapper)javaObj).unwrap();
}
if (to.isInstance(javaObj)) {
return CONVERSION_NONTRIVIAL;
}
if (to == ScriptRuntime.StringClass) {
return 2;
}
else if (to.isPrimitive() && to != Boolean.TYPE) {
return (fromCode == JSTYPE_JAVA_ARRAY)
? CONVERSION_NONTRIVIAL : 2 + getSizeRank(to);
}
break;
git-svn-id: svn://10.0.0.236/trunk@236863 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-28 17:43:38 +00:00
bclary%bclary.com
19698fbfee
JavaScript Tests - fix emca 262 section, bug 396969, not part of the build
...
git-svn-id: svn://10.0.0.236/trunk@236853 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-28 16:09:35 +00:00
nboyd%atg.com
9cd2b63f64
Fix bug in destructuring assignment for let expressions: e.g.
...
"let ([x, y] = [3, 4]) {}" in a functional context, and let
expressions for both function and script/activation contexts.
git-svn-id: svn://10.0.0.236/trunk@236849 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-28 15:37:04 +00:00
nboyd%atg.com
d7372e79bd
Fix bug 397036: NPE with FEATURE_ENHANCED_JAVA_ACCESS
...
What was going on was a java.lang.SecurityException: "Can not make a
java.lang.Class constructor accessible" was getting thrown. So I've
restructured the new code for dealing with getting access to privates to handle
SecurityExceptions and just use accessible members.
I ran with Context.FEATURE_ENHANCED_JAVA_ACCESS set to true over the regression
suite and it turned up a set of cases where a NPE was thrown because a bad
scope object was passed down from ScriptRuntime.newCatchScope. I fixed that and
tightened up the case where a ClassCache isn't found (which was what was
happening with the invalid scope that later resulted in the NPE.
git-svn-id: svn://10.0.0.236/trunk@236781 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-27 19:02:37 +00:00
nboyd%atg.com
455650ef5e
Patch from Steve Yegge (stevey@google.com) providing access to shell for
...
easier subclassing.
git-svn-id: svn://10.0.0.236/trunk@236771 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-27 17:59:00 +00:00
reed%reedloden.com
9d6cda2d3a
Bug 397536 - "performance improvements for JSON.jsm" (optimize string serialization) [p=zeniko@gmail.com (Simon Bünzli) r=sspitzer sr=brendan a1.9=mconnor]
...
git-svn-id: svn://10.0.0.236/trunk@236764 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-27 16:50:29 +00:00
bclary%bclary.com
aa04bf37e6
JavaScript Tests - fix false negatives due to embedded "false!" in output, bug 397545, r=jorendorff, not part of the build
...
git-svn-id: svn://10.0.0.236/trunk@236712 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-26 14:24:01 +00:00
igor%mir2.org
63871008a9
Bug 396758: taking the patch out as it broke the test cases.
...
git-svn-id: svn://10.0.0.236/trunk@236666 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-25 17:30:55 +00:00
igor%mir2.org
d7f23f12d3
Bug 396758: the system flag is moved from GC flags to JSObject itself. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@236664 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-25 17:08:41 +00:00
bclary%bclary.com
0d2a395645
JavaScript Test - regression test for bug 396684, by Igor Bukanov, not part of the build
...
git-svn-id: svn://10.0.0.236/trunk@236562 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-24 19:20:54 +00:00
bclary%bclary.com
d6fb00b1c0
JavaScript Tests - regression tests for bug 396969, by Brendan Eich, not part of the build
...
git-svn-id: svn://10.0.0.236/trunk@236561 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-24 18:41:14 +00:00
bent.mozilla%gmail.com
16ca2a8bd0
Bug 397311 - Need a JSAutoRequest in xpcJSWeakReference::Init. r=brendan, sr+a=jst.
...
git-svn-id: svn://10.0.0.236/trunk@236543 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-24 06:09:56 +00:00
mrbkap%gmail.com
306ac6e848
Fix obsolete test and add a new test to fix orange.
...
git-svn-id: svn://10.0.0.236/trunk@236513 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-22 21:42:36 +00:00
mrbkap%gmail.com
d00778cf51
Only allow XOW wrapped prototypes to go to null, not other objects. bug 394815, r+sr+a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@236510 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-22 21:12:32 +00:00
mrbkap%gmail.com
fd6e883cca
Fix Convert to work for JSTYPE_VOID and make sure it reports an error. bug 394436, r=jst sr=brendan
...
git-svn-id: svn://10.0.0.236/trunk@236508 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-22 21:09:51 +00:00
mrbkap%gmail.com
34ce09573c
Fix old bug where we wouldn't close ts after a compilation error. bug 397136, r+a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@236506 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-22 20:13:35 +00:00
bclary%bclary.com
76d8a39285
JavaScript Test - regression test for bug 396900, by Norris Boyd, not part of the build
...
git-svn-id: svn://10.0.0.236/trunk@236460 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-21 17:11:48 +00:00
bclary%bclary.com
6f76ce68e0
JavaScript Test - regression test for bug 380933, by Jesse Ruderman, not part of the build
...
git-svn-id: svn://10.0.0.236/trunk@236454 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-21 14:55:45 +00:00
bclary%bclary.com
fcfc3947b7
JavaScript Test - regression test for bug 352616, not part of the build
...
git-svn-id: svn://10.0.0.236/trunk@236453 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-21 14:52:04 +00:00
bclary%bclary.com
18e27f02ff
JavaScript Test - regression test for bug 381374, by Jesse Ruderman, not part of the build
...
git-svn-id: svn://10.0.0.236/trunk@236452 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-21 14:48:55 +00:00
bclary%bclary.com
b4e91c58a3
JavaScript Test - regression test for bug 394967, by Jesse Ruderman, not part of the build
...
git-svn-id: svn://10.0.0.236/trunk@236451 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-21 14:45:48 +00:00
bclary%bclary.com
19acda4c18
JavaScript Tests - regression tests for bug 358594, by Jesse Ruderman, not part of the build
...
git-svn-id: svn://10.0.0.236/trunk@236450 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-21 14:39:09 +00:00
nboyd%atg.com
83257cea28
Fix bug: Incorrect behavior for destructuring assignment in Iterator
...
(https://bugzilla.mozilla.org/show_bug.cgi?id=397035 )
git-svn-id: svn://10.0.0.236/trunk@236449 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-21 14:36:30 +00:00
bclary%bclary.com
993426e1c8
JavaScript Test - regression test for bug 379245, by Igor Bukanov, not part of the build
...
git-svn-id: svn://10.0.0.236/trunk@236448 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-21 14:33:29 +00:00
bclary%bclary.com
0585ba339b
JavaScript Test - regression test for bug 382503, by Jesse Ruderman, not part of the build
...
git-svn-id: svn://10.0.0.236/trunk@236447 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-21 14:30:19 +00:00
bclary%bclary.com
08db10d9e2
JavaScript Test - regression test for bug 375976, by Jesse Ruderman, not part of the build
...
git-svn-id: svn://10.0.0.236/trunk@236446 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-21 14:26:35 +00:00
bclary%bclary.com
5f457a2a1c
JavaScript Tests - regression test for bug 372309, by Eli Friedman, not part of the build
...
git-svn-id: svn://10.0.0.236/trunk@236445 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-21 14:12:07 +00:00
nboyd%atg.com
e28cdee849
Fixed bug 396900 : can't do destructuring bind in a let
...
git-svn-id: svn://10.0.0.236/trunk@236442 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-21 13:17:11 +00:00
nboyd%atg.com
0d05f581d9
Doh! Previous checking removing an unused local variable also removed a call
...
with important side effects.
git-svn-id: svn://10.0.0.236/trunk@236441 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-21 12:52:26 +00:00
brendan%mozilla.org
a1dc8c0af9
Fix order of evaluation bug in bitwise and shift ops (396969, r=igor).
...
git-svn-id: svn://10.0.0.236/trunk@236393 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-20 21:49:26 +00:00
benjamin%smedbergs.us
26d6814103
Bug 396936 - FLAGP_TO_THING bustage from C++, r+a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@236389 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-20 19:49:59 +00:00
benjamin%smedbergs.us
6920b0b542
Bug 395678 - Fix const issues with strchr in C++ (when used in mozilla-central), r=mrbkap, a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@236383 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-20 18:58:01 +00:00
igor%mir2.org
e2926c0e02
Bug 333236: merge sweep and free phases in GC. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@236323 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-19 22:04:47 +00:00
igor%mir2.org
26faf19493
Bug 394673: avoid recursion with long chains of "||" or "&&" in JS code. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@236322 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-19 21:53:17 +00:00
igor%mir2.org
c0f539e9c8
Bug 396684: fixing regression from bug 394551 in js_Invoke. r=brendan
...
git-svn-id: svn://10.0.0.236/trunk@236318 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-19 21:10:58 +00:00
sayrer%gmail.com
b3e9adf29c
Bug 396651. Fix JS Request assert in nsXPCComponents_Utils::LookupMethod. r/sr/a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@236317 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-19 20:47:38 +00:00
bclary%bclary.com
f7190c4ae7
JavaScript Test - regression test for bug 375639, by Jesse Ruderman
...
git-svn-id: svn://10.0.0.236/trunk@236297 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-19 07:01:30 +00:00
sayrer%gmail.com
ff6faa4cdf
Bug 396452. Enforce SpiderMonkey request model with assertions. r=mrbkap, sr/a=brendan
...
git-svn-id: svn://10.0.0.236/trunk@236271 18797224-902f-48f8-a5cc-f745e15eee43
2007-09-19 00:26:41 +00:00