Fix constructed functions with invalid params.
Fix constructed functions with invalid params.

arcatdmz/JS-Interpreter,NeilFraser/JS-Interpreter,NeilFraser/JS-Interpreter,arcatdmz/JS-Interpreter,NeilFraser/JS-Interpreter,arcatdmz/JS-Interpreter