Skip to content

Commit

Permalink
remove V8-specific stack trace fiddling
Browse files Browse the repository at this point in the history
  • Loading branch information
brontolosone committed Oct 10, 2024
1 parent d1b6cfa commit 69bafe5
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/request-data/user-preferences.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,6 @@ const VUE_PROPERTY_PREFIX = '__v_'; // Empirically established. I couldn't find
class PreferenceNotRegisteredError extends Error {
constructor(prop, whatclass, ...params) {
super(...params);
if (Error.captureStackTrace) {
// on V8, we can have the stack trace start from where the error was thrown
Error.captureStackTrace(this, PreferenceNotRegisteredError);
}
this.name = 'PreferencesNotRegisteredError';
this.message = `Property "${prop}" has not been registered in ${whatclass.name}`;
}
Expand Down

0 comments on commit 69bafe5

Please sign in to comment.