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

741 Commits

Author SHA1 Message Date
Robert Krimen
3240efeb62 Convert string to utf16 for length, indexing, etc.
This change is internal to String objects
2013-01-25 14:57:55 -08:00
Robert Krimen
8044e8ae38 Adjust Makefile (test-synopsis) 2013-01-25 10:46:58 -08:00
Robert Krimen
4750432d5c Recognize erroneous "\x..", "\u...." as errors
For example, "\x0G" is not valid
2013-01-25 10:33:19 -08:00
Robert Krimen
3696636fce Move test262 & more into a separate distribution 2013-01-25 10:14:14 -08:00
Robert Krimen
20d2e8bba6 gofmt
Ugh.
2013-01-25 09:59:42 -08:00
Robert Krimen
a13a891d92 Minor .test262 adjustments 2013-01-24 23:56:48 -08:00
Robert Krimen
668d0fc6a7 Fix broken (panicking) RegExp transformations
Transformations would panic on some edge (error) cases:

    \u0z
    \x_
2012-12-28 15:50:37 -08:00
Robert Krimen
de3300c23b Improve handling of \c 2012-12-27 16:40:11 -08:00
Robert Krimen
ed1be716bd Add panic test for when property.value might be nil 2012-12-27 15:25:32 -08:00
Robert Krimen
8f2a1c60e5 Default a descriptor value to undefined if writable is given 2012-12-26 17:25:00 -08:00
Robert Krimen
dc83a19a06 Pluck out panicking tests 2012-12-26 17:04:26 -08:00
Robert Krimen
02385abb6f Fix .test262 panic digest 2012-12-26 16:59:34 -08:00
Robert Krimen
bd12027a22 Add MIT license
Fix #9
2012-12-17 10:56:16 -08:00
Robert Krimen
2b5c4b6975 Safeguard RegExp.exec against non-RegExp 2012-11-21 18:27:36 -08:00
Robert Krimen
4de35c1901 Merge pull request #7 from mschoch/addExport
add Export capability to javascript Value
2012-11-21 18:08:31 -08:00
Robert Krimen
45e8942866 Expand \c replacement range to include a-z ([A-Za-z]) 2012-11-16 10:40:07 -08:00
Robert Krimen
8f9e999236 Throw proper SyntaxError if unable to parse a regular expression 2012-11-15 16:10:24 -08:00
Robert Krimen
30a04e1992 URIError => SyntaxError 2012-11-15 16:06:13 -08:00
Robert Krimen
aef569f297 Fix to handle Infinity radix in parseInt properly 2012-11-15 15:15:26 -08:00
Robert Krimen
2a36c82936 toIntegerFloat(Infinity) == Infinity 2012-11-15 15:15:12 -08:00
Robert Krimen
db913468da If a property is defined without a value (nil interface), define it as undefined 2012-11-14 15:48:19 -08:00
Robert Krimen
0498f06be0 Fix trying to delete non-reference 2012-11-14 11:09:52 -08:00
Robert Krimen
d87480bd29 Add panicking report 2012-11-14 10:59:10 -08:00
Robert Krimen
60438c5216 Clean up .test262/Makefile, add test262 report mechanism 2012-11-13 20:02:12 -08:00
Robert Krimen
07bb006aa1 Make note of any (test262) panics during digestion 2012-11-13 17:28:35 -08:00
Robert Krimen
033b614eb7 Digest test262 results 2012-11-13 17:19:59 -08:00
Robert Krimen
bff799a0e1 Test for correct endIndex when submatching 2012-11-11 16:23:51 -08:00
Robert Krimen
1b39f1b6cc Calculate endIndex from last place of match, not last place of last submatch 2012-11-09 15:36:08 -08:00
Robert Krimen
5b38b16e99 Add remark about vertical tab and \s 2012-11-07 16:00:32 -08:00
Robert Krimen
845172c82c endIndex needs to be an offset from lastIndex 2012-11-07 15:46:21 -08:00
Marty Schoch
5bac9a7a34 add Export capability to javascript Value
this allows you to export a javascript Value back
for use in go.  the result structure should be the
same as if you serialized to JSON in javascript
and then Unmarshal'd those bytes in go
2012-11-07 08:18:46 -05:00
Robert Krimen
9385f32241 Fix substring to have correct behavior 2012-11-06 20:03:22 -08:00
Robert Krimen
d9765234a4 Fix to not bypass finally on continue, break, return, etc. 2012-11-06 17:58:31 -08:00
Robert Krimen
a4de862caa Test condition in case of continue in do-while 2012-11-06 17:27:12 -08:00
Robert Krimen
b81abbf3c6 Make sure that Date.valueOf is an integer 2012-11-06 15:08:40 -08:00
Robert Krimen
26f8a53978 Accept out-of-range +/-Infinity (instead of NaNing) 2012-11-06 11:06:45 -08:00
Robert Krimen
75ea5e32a4 Accept adjacent commas in array literals 2012-11-06 10:47:47 -08:00
Robert Krimen
783516caed Add eval flag to _executionContext 2012-11-05 18:03:54 -08:00
Robert Krimen
d672bf5037 Have _objectEnvironment pay attention to deletable 2012-11-05 17:45:06 -08:00
Robert Krimen
bc6cd2ef12 Get variable binding a bit closer to the specification 2012-11-05 17:39:52 -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
aa3109f8db typeof null === "object" 2012-11-05 13:57:18 -08:00
Robert Krimen
7ab5365515 Pass back result of "delete ..." (true or false) 2012-11-05 13:46:54 -08:00
Robert Krimen
6d132f8fe5 Pass in base value as-is, ...? 2012-11-05 13:44:04 -08:00
Robert Krimen
8f8534ae3f _argumentReference => _propertyReference 2012-11-05 13:39:33 -08:00
Robert Krimen
efc94517dd _objectReference => _propertyReference 2012-11-05 13:33:29 -08:00
Robert Krimen
5679347c88 Take out (unused?) _primitiveReference 2012-11-05 13:31:18 -08:00