Move set creation outside function call

Removes at least 75% of the regression to parserTests from the es6
shim.

Change-Id: I4a0bf03fe95f43a6fc8e480a655adf865f71e48a