-
-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Merged by Bors] - %NativeError%.[[prototype]]
should be Error
constructor
#1883
Conversation
Test262 conformance changesVM implementation
Fixed tests (24):
|
Codecov Report
@@ Coverage Diff @@
## main #1883 +/- ##
==========================================
+ Coverage 46.73% 46.77% +0.04%
==========================================
Files 204 204
Lines 16732 16746 +14
==========================================
+ Hits 7819 7833 +14
Misses 8913 8913
Continue to review full report at Codecov.
|
Benchmark for 435c08eClick to view benchmark
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, I'd noticed these tests were failing but couldn't understand the whole prototype vs constructor logic.
bors r+
Before the `%NativeError%` objects (like `TypeError`, `ReferenceError`, etc) `[[prototype]]` field was set to `Function.prototype` but this is wrong it should be the `Error` constructor object itself. This makes the `%NativeError%`s 100% spec compliant :) (except `AggregateError` because its not implemented)
Pull request successfully merged into main. Build succeeded: |
%NativeError%.[[prototype]]
should be Error
constructor%NativeError%.[[prototype]]
should be Error
constructor
Before the
%NativeError%
objects (likeTypeError
,ReferenceError
, etc)[[prototype]]
field was set toFunction.prototype
but this is wrong it should be theError
constructor object itself.This makes the
%NativeError%
s 100% spec compliant :)(except
AggregateError
because its not implemented)