OLD | NEW |
---|---|
(Empty) | |
1 var callbacks = [ function() {return 'foo'}, "nonobject" ]; | |
2 assertEquals('foo', callbacks['0']()); | |
3 assertThrows("callbacks['2']()"); | |
4 | |
5 // The following test only works when --call_regexp is enabled in V8. | |
Kasper Lund
2008/09/08 05:27:21
You can enable flags for specific test by adding a
Feng Qian
2008/09/08 18:58:48
Done.
| |
6 // var callbacks = [ /abc/ ]; | |
7 // assertEquals('abc', callbacks['0']("abcdefg")); | |
OLD | NEW |