結果 : throw error in constructor javascript