Fix newFunction failure
Fix newFunction failure

Microsoft/pxt,switch-education/pxt,Microsoft/pxt,Microsoft/pxt,switch-education/pxt,switch-education/pxt,switch-education/pxt,Microsoft/pxt,Microsoft/pxt,switch-education/pxt