forked from boa-dev/boa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some optimizations on
Error
(boa-dev#4020)
* chore: mark `JsNativeError`'s constructors const * chore: add associated constants * chore: replace const method calls in `js_error` with corresponding constants * fix: use correct method * perf: change error's `message` type to `Cow<'static str>` * chore: fix lint
- Loading branch information
1 parent
265dca3
commit 4983471
Showing
3 changed files
with
87 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -179,7 +179,7 @@ simple_empty_finalize_trace![ | |
char, | ||
TypeId, | ||
String, | ||
Box<str>, | ||
str, | ||
Rc<str>, | ||
Path, | ||
PathBuf, | ||
|