-- Error 를 상속한 클래스: 프로토타입 사슬을 누가 맞추나
construct :: Target -> Class -> Object
construct ES2015 cls = Object { proto = prototype cls } -- Error 가 new.target 으로 맞춘다
construct ES5 _ = Object { proto = prototype Error } -- new.target 이 없다 → instanceof CustomError == False
-- 고침: super(message) 직후 Object.setPrototypeOf(this, CustomError.prototype) — ES2015+ 타깃이면 필요 없다