Add change that is required by JS unit tests.

- This change should have been included in 3e900baeaec1fc52b66551332c4e1ba4c2370080.