TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Create-error.js – A simple helper for subclassed errors in Javascript

13 pointsby tgriesserover 11 years ago

1 comment

inglorover 11 years ago
I don&#x27;t understand why this is more useful than just creating an object and settings its prototype to `Error`.<p>Anyone care to explain?
评论 #6862675 未加载