Commit Graph

88 Commits

Author SHA1 Message Date
Jeff Walden
3de322ba70 Bug 629187 - Strict mode keywords are accepted as argument names and function name for strict mode functions. r=jimb
--HG--
extra : rebase_source : adce872db2d58e32a53995d757a85da50c8f63a4
2011-01-26 16:46:38 -08:00
Chris Leary
074bd0c596 Bug 595691, take 2: fix versioning across VM instances, remove _options. (r=luke,brendan,igor) 2011-01-27 02:54:58 -08:00
Chris Leary
1771b7c232 Backed out changeset b88172246b66 due to Win32 debug failures. 2011-01-25 04:11:47 -08:00
Chris Leary
b462e1fb98 Bug 595691: fix versioning across VM instances, remove _options. (r=luke,brendan,igor) 2011-01-25 02:33:27 -08:00
Jeff Walden
388e0a33f7 Bug 497869 - Forbid let and yield in strict mode code in scripts which are not JS1.7 or greater (that is, any web script not explicitly opted into JS1.7+ with a <script type>). r=brendan 2011-01-24 07:26:26 -08:00
Jeff Walden
15fda24aa9 Bug 497869 - Future reserved words are syntax errors in strict mode. r=brendan 2011-01-22 17:46:22 -08:00
Jeff Walden
882117c5e3 Back out everything from the last several hours for turning into a disaster zone finally ending in total orange. r=return-to-sanity 2011-01-23 03:12:28 -08:00
Jeff Walden
a6a68a253b Bug 497869 - Future reserved words are syntax errors in strict mode. r=brendan 2011-01-22 17:46:22 -08:00
Chris Leary
29a4e97a8f Bug 617935: Check string lengths using StringBuffer. (r=lw) 2011-01-12 15:28:58 -08:00
Jeff Walden
f7bec8a9e8 Bug 614493 - Move top-level binding storage (and argument, variable, and upvar counts) out of JSFunction and into js::Bindings, itself stored in JSScript, anticipating the time when strict mode eval scripts will need it. r=brendan 2010-11-16 15:34:24 -08:00
Luke Wagner
d8719356c0 Bug 609440, part 4 - make JSString::chars() fallible (r=waldo,dvander,igor,dwitte,njn) 2010-12-06 10:26:58 -08:00
Nicholas Nethercote
4c0f55c02d Bug 618572 - Assertion failure: *userbuf.ptr == c, at ../jsscan.cpp:349 (2nd attempt). r=brendan. 2010-12-15 15:14:33 -08:00
Nicholas Nethercote
7f0dc0fdb5 Backed out changeset 2892db39b022 due to orange. 2010-12-14 18:54:04 -08:00
Nicholas Nethercote
41bc0347b0 Bug 618572 - Assertion failure: *userbuf.ptr == c, at ../jsscan.cpp:349. r=brendan. 2010-12-14 17:26:01 -08:00
Brendan Eich
7d283b62c9 Fix //@line from stdin and (more important) add @line testcase (618652, r=njn). 2010-12-12 00:50:59 -08:00
Jeff Walden
871064c6e8 Bug 601262 - A string literal containing an octal escape before a strict mode directive should be a syntax error. (Yes, this requirement is ugly, but it's what ES5 says.) r=brendan
--HG--
extra : rebase_source : c30be5f90e4b069da4ea6f035598f9a3262fa8e0
2010-10-13 04:00:28 -07:00
Nicholas Nethercote
fecf9a1832 Bug 588648 - Don't copy chars when scanning. r=brendan. 2010-12-07 15:22:52 -08:00
Jan de Mooij
11b8b5a9c3 Bug 615070 - Newline after backslash is invalid in regexp literals. r=jwalden 2010-11-29 19:35:03 +01:00
Brendan Eich
769e50b90a Bug 609617 - delete(eval(...)) calls indirect eval (r=jimb). 2010-11-04 16:06:08 -07:00
Jason Orendorff
630900ee20 Finally get rid of /* Added by JSIFY */ comments. r=Waldo. 2010-10-01 18:46:54 -05:00
Chris Leary
402dc1f5d2 Bug 596502: unbreak XML parsing on JS1.6 and onwards. (r=brendan) 2010-09-18 00:31:36 -07:00
Nicholas Nethercote
837cae8aad Bug 590834 - Clean up number-to-string code. r=jwalden. 2010-09-13 13:08:25 -07:00
Chris Leary
2fa4fedbc1 Bug 540675: eviscerate JSStackFrame::callerVersion. (r=lw) 2010-09-13 09:38:22 -07:00
Chris Leary
7c740a8dc0 Back out due to mochiserver breakage. (no_r=me) 2010-09-09 16:52:31 -07:00
Chris Leary
7c2ac56dff Bug 540675: remove callerVersion from stack frame. (r=lw) 2010-09-09 14:25:30 -07:00
Nicholas Nethercote
fa2a2f97f3 Bug 584595 - TM: speed up scanning three ways. r=cdleary. 2010-08-17 18:01:23 -07:00
Jeff Walden
f6cbfcea4c Bug 582643 - Reject '0x' without any hex digits. r=jorendorff 2010-07-29 17:37:25 -07:00
Jeff Walden
a38463c8a4 Bug 577536 - parseInt() uses radix 8 if the string starts with '0' but not 0x or 0X, and the digit string should be stringified before the radix is integerized. r=jorendorff 2010-07-23 02:29:44 -05:00
Chris Leary
94f23c0a06 Arena pool macros don't want to die. 2010-07-11 00:09:34 -07:00
Chris Leary
48398c7423 Bug 559408: Arena macros to methods. (r=galish) 2010-07-10 23:19:14 -07:00
Chris Leary
908f8ec587 Back out f8c6a272f2dc. It was working on Try a few minutes ago, I swear! (r=red) 2010-06-26 18:09:07 -07:00
Chris Leary
52608d352b Bug 559408: Turn arena pool macros into methods. (r=gal) 2010-06-26 17:55:00 -07:00
Nicholas Nethercote
b56caab02f Bug 564369 - streamline TokenStream::getChar(), part 11. r=cdleary.
--HG--
extra : rebase_source : 17731fc14ffa7d8ac7194baf2fe9bf72b7d2f7e5
2010-05-12 21:43:56 -07:00
Nicholas Nethercote
34bd8023e4 Bug 564369 - streamline TokenStream::getChar(), part 10. r=cdleary.
--HG--
extra : rebase_source : e1eea6473ba5a27f6f0c397706c8a38026c4919c
2010-05-12 21:43:27 -07:00
Nicholas Nethercote
81464e51c8 Bug 564369 - streamline TokenStream::getChar(), part 9. r=cdleary.
--HG--
extra : rebase_source : c9315a103358ec76fb572c67c7ba5ca2e049a22b
2010-05-12 21:43:01 -07:00
Nicholas Nethercote
83a5e45caf Bug 564369 - streamline TokenStream::getChar(), part 7. r=cdleary.
--HG--
extra : rebase_source : 9017fa314243250ee90170772c5b5bbcbd244262
2010-05-12 21:42:16 -07:00
Nicholas Nethercote
400f96617e Bug 564369 - streamline TokenStream::getChar(), part 6. r=cdleary.
--HG--
extra : rebase_source : ea659b37be1041d0599ad1152b85b669dd3617dd
2010-05-12 21:41:49 -07:00
Nicholas Nethercote
7e41b32948 Bug 564369 - streamline TokenStream::getChar(), part 5. r=cdleary.
--HG--
extra : rebase_source : a087a3706e0196962f1be094d697f27d0d476ad5
2010-05-12 21:41:24 -07:00
Nicholas Nethercote
082f31c3e2 Bug 564369 - streamline TokenStream::getChar(), part 4. r=cdleary.
--HG--
extra : rebase_source : 5a09b4384740293ef0bbfe5b97454b684c8584ff
2010-05-12 21:40:59 -07:00
Nicholas Nethercote
0ebfa6509b Bug 564369 - streamline TokenStream::getChar(), part 3. r=cdleary.
--HG--
extra : rebase_source : 4332c12ea549aebb95f72035104e5a47159626e1
2010-05-12 21:40:28 -07:00
Nicholas Nethercote
6abfef34e4 Bug 564369 - streamline TokenStream::getChar(), part 2. r=cdleary.
--HG--
extra : rebase_source : 4148cba1faa670ee8a5147b78a339bf676d5fcae
2010-05-12 21:39:59 -07:00
Nicholas Nethercote
c33fb75973 Bug 564369 - streamline TokenStream::getChar(), part 1. r=cdleary.
--HG--
extra : rebase_source : d9e3d00e7798392242f7a4410c1825e8ff30af61
2010-05-12 21:39:32 -07:00
Robert Sayre
a354ba1cfc Backed out changeset 919950c7f0f0 2010-05-11 11:52:17 -04:00
Chris Leary
299dd52ca1 Bug 559408: Arena pool macros to methods. (r=gal) 2010-05-10 21:46:52 -07:00
Dave Herman
ed6c552bb7 Bug 558437 - rename JSCompiler to js::Parser (r=brendan). 2010-04-10 21:15:35 -07:00
Chris Leary
2ebc323e9d Bug 558002 - Convenience methods for TokenStream flags. r=jwalden 2010-04-09 18:54:51 -07:00
Chris Leary
8e0decc494 Bug 553423 - JS scanner namespacing cleanup (r=lw) 2010-03-21 16:07:48 -07:00
Luke Wagner
1e33f57b39 Backed out changeset 6403442ffa1d (failure on windows, winnt.h defines TokenType!) 2010-03-18 22:26:47 -07:00
Chris Leary
2400e09e63 Bug 553423 - JS scanner namespacing cleanup (r=lw) 2010-03-18 22:15:51 -07:00
Chris Leary
431c00210e Bug 549658: clean up JS scanner and inline more things, r=brendan,jimb 2010-03-15 16:42:06 -07:00