Malaysia's economy expanded by 8.9 percent in the second quarter from a year ago, recording the third consecutive quarter growth.