fixed for update to v2
fixed for update to v2

RatneshThakur/testharness.js,jyasskin/testharness.js,ayg/testharness.js,hallvors/testharness.js,jyasskin/testharness.js,hallvors/testharness.js,zqzhang/testharness.js,bboyle/testharness.js