結果 : javascript check if function throws error