1
0
mirror of https://github.com/robertkrimen/otto synced 2025-10-19 19:55:30 +08:00
Commit Graph

17 Commits

Author SHA1 Message Date
Robert Krimen
ad8a97c028 New parser
* Faster, more straightforward, etc.
* More advanced object literals (get ..., set ...)
* More tests using JavaScript from the wild (http://cdnjs.com/)
2014-04-10 20:42:25 -07:00
Robert Krimen
ea621687a4 Add Otto.Copy() 2013-07-14 14:20:01 -07:00
Robert Krimen
7e2b4f2063 Rewrite of property handling to be more robust and compliant
* No more _stash
* Now using a "virtual table" system via _objectClass
* Make Array.concat GoArray compatible (via .isArray())

Fix #16
2013-05-12 14:14:51 -07:00
Robert Krimen
321cc0dca8 Add _argumentsStash, with better conforming arguments behavior:
1. Can not delete a function parameter
    2. Deleting the index of an arguments object simply
       removes the link to that function parameter
2013-02-24 14:28:07 -08:00
Robert Krimen
840fde7610 Switch function environment to be declarative...
...instead of object.
Also, make sure arguments passed through to function are not deletable.
2013-02-23 14:47:18 -08:00
Robert Krimen
38b9c8071f Mutable bindings should not be deletable by default 2013-02-23 14:24:19 -08:00
Robert Krimen
20d2e8bba6 gofmt
Ugh.
2013-01-25 09:59:42 -08:00
Robert Krimen
d672bf5037 Have _objectEnvironment pay attention to deletable 2012-11-05 17:45:06 -08:00
Robert Krimen
5f407353c2 Implementation (and use) of _declarativeEnvironment
No longer masquerading via _objectEnvironment
2012-11-05 17:14:56 -08:00
Robert Krimen
8d15eef506 Begin refactoring/simplifying _*Environment 2012-11-05 16:53:37 -08:00
Robert Krimen
19c039924a Simplify _environment interface
Factor out derivative-environment creation
2012-11-05 16:40:19 -08:00
Robert Krimen
23501072fc Move getIdentifierReference 2012-11-05 15:35:01 -08:00
Robert Krimen
efc94517dd _objectReference => _propertyReference 2012-11-05 13:33:29 -08:00
Robert Krimen
3c93384f5c Cleanup of stash, property, and object
Use octal to designate write/enumerate/configure (experimental)
Move extensibility responsibility into the stash
Rename propertyStash => objectStash (be congruent with arrayStash, etc.)
Get rid of a bunch of useless methods
Privatize everything ([A-Z] => [a-z_])
gofmt
2012-10-26 15:47:19 -07:00
Robert Krimen
c6e45a7118 Change getIdentifierReference to accept a node argument
To track/report where errors are coming from
2012-10-09 17:26:08 -07:00
Robert Krimen
ade6a169be Partially fix ReferenceError origin reporting 2012-10-09 17:19:29 -07:00
Robert Krimen
4a8c7ffc00 Initial commit 2012-10-05 18:47:53 -07:00