summaryrefslogtreecommitdiff
path: root/cli/tsc/99_main_compiler.js
diff options
context:
space:
mode:
authorAaron O'Mullan <aaron.omullan@gmail.com>2021-04-22 02:50:50 +0200
committerGitHub <noreply@github.com>2021-04-21 20:50:50 -0400
commitff9ff4a3771689c56d557bf0dbeeb46a50d1adf2 (patch)
tree3c80c874f706484cfc83b148d4b8d48e5bd664fc /cli/tsc/99_main_compiler.js
parent89bb774010b6b80bcbf7c19e8ed28f569abf4d90 (diff)
refactor(core): simplify error handling (#10297)
- register builtin v8 errors in core.js so consumers don't have to - remove complexity of error args handling (consumers must provide a constructor with custom args, core simply provides msg arg)
Diffstat (limited to 'cli/tsc/99_main_compiler.js')
-rw-r--r--cli/tsc/99_main_compiler.js1
1 files changed, 0 insertions, 1 deletions
diff --git a/cli/tsc/99_main_compiler.js b/cli/tsc/99_main_compiler.js
index 73bab249e..ebb4d679d 100644
--- a/cli/tsc/99_main_compiler.js
+++ b/cli/tsc/99_main_compiler.js
@@ -799,7 +799,6 @@ delete Object.prototype.__proto__;
// Setup the compiler runtime during the build process.
core.ops();
- core.registerErrorClass("Error", Error);
// A build time only op that provides some setup information that is used to
// ensure the snapshot is setup properly.