-
-
Notifications
You must be signed in to change notification settings - Fork 402
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
Refactor Function
internal methods and implement BoundFunction
objects
#1583
Conversation
Function
objects and document codeFunction
internal methods and implement BoundFunction
objects
Test262 conformance changes:
Fixed tests (260):
|
1920a73
to
ddcae67
Compare
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.
Looks really nice!
e760dad
to
51112d2
Compare
Implemented let mut map_iterator = this.as_object().map(|obj| obj.borrow_mut());
let map_iterator = map_iterator
.as_mut()
.and_then(|obj| obj.as_map_iterator_mut())
.ok_or_else(|| context.construct_type_error("`this` is not a MapIterator"))?;
// code using `map_iterator` |
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.
Looks good to me just needs a rebase :)
51112d2
to
f3c765f
Compare
@HalidOdat I can't currently move the |
f3c765f
to
35743c6
Compare
35743c6
to
62fa5da
Compare
This Pull Request fixes/closes #1579.
It changes the following:
[[Call]]
and[[Construct]]
to beInternalFunction
sBoundFunction
exotic objectsFunction
builtin methodsOrdinaryHasInstance
to be insideJsValue
JsValue::InstanceOf
operator insideJsValue
JsValue::[as/is]_callable
JsValue::[as/is]_constructor
JsValue::as_object
to be&JsObject
JsValue::as_function
Closure
type inside closures