Граф коммитов

101 Коммитов

Автор SHA1 Сообщение Дата
brendan%mozilla.org 049956ebff Patch from nanto@moon.email.ne.jp for misordered alternates in string-lexing regexp, and lack of IE /[/]/ compat in regexp-lexing regexp (433831, r=me, NPOTB). 2008-05-21 22:38:18 +00:00
mrbkap%gmail.com c36137df93 Make peek-on-same-line actually work correctly. bug 401246, r=brendan (NPOTB) 2007-12-19 01:15:41 +00:00
brendan%mozilla.org adb99ad6d4 Fix post-increment/decrement automatic semicolon insertion bug (401466, r=mrbkap). 2007-11-04 22:21:19 +00:00
brendan%mozilla.org e4b2514675 Fix conditional expressions (401405, r=mrbkap). 2007-10-30 02:35:02 +00:00
brendan%mozilla.org d22fbfee8e Include $ and _ in identifier chars (still to do: Unicode alnums and escapes); based on patch from Frankie Robertson <frankierobertson5@googlemail.com> (399625, r=mrbkap). 2007-10-16 23:43:28 +00:00
brendan%mozilla.org 4ee42ce4d7 Fix from Frankie Robertson <frankierobertson5@googlemail.com> to Node toString (399659, r/a=me). 2007-10-16 22:56:16 +00:00
mrbkap%gmail.com 474aec7b5f Correctly parse regular expressions with the 'm' and 'y' flags. bug 378486, r=brendan 2007-05-19 01:57:30 +00:00
brendan%mozilla.org 50a7f7fcbf Fix blunder in reworking of how SpiderMonkey detects a label statement (reported by Steve Yegge). 2007-05-06 04:34:24 +00:00
mrbkap%gmail.com 1ada25dd27 Use __applyConstructor__ to allow for an arbitrary number of parameters to be passed to native constructors. bug 331429, r=brendan 2006-05-09 19:23:39 +00:00
mrbkap%gmail.com 7cb994da37 Use the right object constructors. bug 334024, r=brendan 2006-04-18 18:12:53 +00:00
brendan%mozilla.org c8cb053a9f Add exec-time ecmaStrictMode flag and use it to allow 'for (i in null)' and the like. 2006-04-15 05:02:08 +00:00
mrbkap%gmail.com 7a3390709c Only avoid calling toObject when v is null. bug 333911, r=brendan 2006-04-14 18:14:43 +00:00
mrbkap%gmail.com e9fcd71957 Don't throw when given |for (i in null)| to match SpiderMonkey and to match users' expectations. bug 333911, r=brendan 2006-04-13 22:49:56 +00:00
mrbkap%gmail.com a7a0806c2a Fixing some silliness from my last checkin, tokenstr takes a tokentype, not the token itself. r=brendan 2006-03-22 06:23:59 +00:00
mrbkap%gmail.com 3acf1716d9 Handle assignment inside the then part of ternary expressions correctly according to the ECMAScript grammar. bug 330975, r=brendan 2006-03-22 03:00:03 +00:00
mrbkap%gmail.com cf49675a47 Don't forget to throw syntax errors for missing parentheses or brackets. bug 331127, r=brendan 2006-03-20 20:57:51 +00:00
mrbkap%gmail.com 4edd0845fc Don't pollute String.prototype. bug 330976, r=brendan 2006-03-20 20:15:15 +00:00
mrbkap%gmail.com 2b3aedfa9d Part of bug 300736: Reflect Narcissus' evaluate in the global object since we expose it natively in the shell now. r=brendan 2005-07-14 07:22:58 +00:00
mrbkap%gmail.com b7d0bf3197 bug 299898: Get Narcissus running the js tests. This adds a way for it to load scripts (using snarf) relative to the calling script (such as js.js). r=brendan a=shaver 2005-07-13 16:49:02 +00:00
mrbkap%gmail.com 44f2bb5d5a bug 300534: Internal Narcissus functions show up in objects' prototypes. This fixes a failure on the js testsuite and also fixes Narcissus' failure on SpiderMonkey's bug 299641. r=brendan 2005-07-13 02:46:10 +00:00
brendan%mozilla.org c194893123 Add dummy or first params to constructors so they have the right arity (length property). 2005-07-07 21:47:59 +00:00
brendan%mozilla.org 90d786d526 Keep Activation objects from being polluted by native Object.prototype props (using bug 299898, r=mrbkap). 2005-07-07 07:29:21 +00:00
mrbkap%gmail.com 115ccdee6a Narcissus can now run the Javascript tests, to some extent. Fix a couple of bugs found by the js tests (we were unable to parse the generated function resulting from new Function() and String.fromCharCode was not defined). evaluate() now returns its argument if it isn't a string (to catch things like evaluate(load(...))). 2005-07-07 00:53:44 +00:00
brendan%mozilla.org 851b03c243 Rename FunctionDeclaration to FunctionDefinition, since it handles declarations, statements, and expressions (mimicing ECMA). 2005-07-07 00:21:09 +00:00
brendan%mozilla.org 0cb5241ec3 Fix expression statement (SEMICOLON) nodes to start and end at the same source index as their expression child. 2005-07-02 17:26:00 +00:00
mrbkap%gmail.com 6053e96090 Provide snarf and load functions. 2005-07-02 04:55:29 +00:00
brendan%mozilla.org 7974c73eb2 Use non-greedy closure to match C-style comments. 2005-07-01 23:00:35 +00:00
brendan%mozilla.org 1e733a211e Never mind\! 2005-07-01 20:48:23 +00:00
brendan%mozilla.org d05a6820cc Add function statements, an ECMA Ed. 3 extension supported by SpiderMonkey. 2005-06-30 18:16:19 +00:00
brendan%mozilla.org d3cfe0a98b One more followup fix: __defineProperty__ should probably be global. 2005-06-12 18:45:53 +00:00
brendan%mozilla.org 8ce567567e Followup to last checkin to delete constructor from Activation.prototype. 2005-06-12 18:28:33 +00:00
brendan%mozilla.org 0012321c21 Mirror fix for bug 290774 from SpiderMonkey to Narcissus. 2005-06-12 16:08:21 +00:00
brendan%mozilla.org efd36dca8b Fix IDENTIFIER resolution to use in, not hasOwnProperty, since we are metacircular on __proto__. 2004-05-17 23:10:53 +00:00
brendan%mozilla.org 1ae219610b Parallel fix to SpiderMonkey's bug 238945, to automatically insert ; after do-while on any error token. 2004-03-30 03:25:17 +00:00
brendan%mozilla.org 6c9f42d9fa Fiddle comment. 2004-02-25 22:34:53 +00:00
brendan%mozilla.org effdf8506f Use label local in Statement; eliminate somewhat arbitrary empty lines. 2004-02-25 09:06:36 +00:00
brendan%mozilla.org f09979b677 Duh. 2004-02-24 21:23:45 +00:00
brendan%mozilla.org 9be47ec08d s/compile/parse/ -- compile is overgeneral, especially in light of what's next. 2004-02-24 03:04:40 +00:00
brendan%mozilla.org eb90e6eae3 Simplify consts generation slightly. 2004-02-24 03:03:33 +00:00
brendan%mozilla.org 4b6cb095da Add ecmaStrictMode to CompilerContext. 2004-02-22 07:21:55 +00:00
brendan%mozilla.org 1f4d1acecd Elaborate reference error message; fix iloop in __hasInstance__. 2004-02-20 07:35:28 +00:00
brendan%mozilla.org 6a7bb61959 t.scanOperand should be true by default, eliminating scanForOperand bloat. 2004-02-17 08:43:48 +00:00
brendan%mozilla.org 2426ec2edc s/this/v/g in getValue. 2004-02-16 16:55:40 +00:00
brendan%mozilla.org 402cc46636 - Add source and cursor properties to SyntaxError exceptions.
- Rework labeled statements to fix chicken-and-egg problem with BREAK to label
  completion type targeting.
- Unify next-statement non-expression token cases and default: in Expression.
2004-02-16 02:38:19 +00:00
brendan%mozilla.org f99569416a - Fix global.String to convert its argument to string type when called as
a function.
- Rework labeled statements to fix chicken-and-egg problem with BREAK to label
  completion type targeting.
- Avoid defining Function.prototype.__call__, __construct__, and
  __hasInstance__ once they're set, to avoid storing host-uninterpretable
  target function objects in those properties.
- Fix evaluate to throw a host exception if returning to the host interpreter.
2004-02-16 02:15:27 +00:00
brendan%mozilla.org ce04728b4d Fully bootstrapped, but host still can't apply target functions. 2004-02-14 21:58:10 +00:00
brendan%mozilla.org 20d6618029 Fix Expression to work with Statement's automatic semicolon insertion logic. 2004-02-14 21:56:41 +00:00
brendan%mozilla.org 21766deb5a Fix Expression to stop on : only if hookLevel is not elevated. 2004-02-11 08:30:20 +00:00
brendan%mozilla.org 6e82d5c043 Checkpoint, still not quite metacircularly bootstrapped. 2004-02-11 07:57:19 +00:00
brendan%mozilla.org 6dcc130f14 - ECMA-prescribed {DontEnum} attributes for length on empty arg list, and on
<any-function>.prototype.constructor.
- Put rarely-set default properties in prototypes.
- Improve a couple of comments.
2004-02-03 23:58:03 +00:00
brendan%mozilla.org 1314cb7e3b JS implemented in JS, initial checkin. 2004-02-03 03:28:54 +00:00