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

13 Commits

Author SHA1 Message Date
Robert Krimen
78ab288e0a Another RegExp test 2013-05-02 20:23:07 +02:00
Robert Krimen
b078bacaf7 Set the prototype of Math to the global object prototype 2013-05-02 20:23:07 +02:00
Robert Krimen
b4a6286aa7 Use RegExp._RegExp.Flags when doing new RegExp(RegExp) 2013-05-02 20:23:07 +02:00
Robert Krimen
5c5dfbf501 Use RegExp.source (not RegExp.toString) when doing new RegExp(RegExp) 2013-05-02 20:23:06 +02:00
Robert Krimen
74a8739188 Cannot supply flags when constructing one RegExp from another 2013-05-02 20:23:06 +02:00
Robert Krimen
de97589c43 RegExp(/xyzzy/) & RegExp(/xyzzy/, undefined) will return a reference to the exact same /xyzzy/ object...
...instead of creating a new copy
2013-05-02 20:23:06 +02:00
Robert Krimen
1628647e05 For RegExp.exec, return the rune index in the string, not the byte index 2013-05-02 20:23:06 +02:00
Robert Krimen
70e8c14c94 Fix broken multiline RegExp behavior
Was actually not being passed through, oops...
2013-05-02 20:23:06 +02:00
Robert Krimen
c8c3533f67 Make note of different RegExp behavior 2013-05-02 20:23:06 +02:00
Robert Krimen
0420accca6 Include .input, .index in the result of a successful RegExp.exec(...) 2013-05-02 20:23:06 +02:00
Robert Krimen
5f5cc09fbc Fix broken RegExp syntax: \c 2013-05-02 20:23:06 +02:00
Robert Krimen
9184233705 Bundle terst dependency (github.com/robertkrimen/terst) 2013-04-15 10:20:34 -07:00
Robert Krimen
809a0a0ba6 Split tests out of one big massive file 2013-02-05 08:56:08 -08:00