tessel/runtime#501 r=@tcr: Added .lastIndex to RegExp