-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
[FEATURE] Implement injection parameter normalization RFC. #17858
Conversation
791b80b
to
8007793
Compare
8007793
to
7f112e0
Compare
Just updated to more closely match emberjs/rfcs#451, should be ready for review. |
7f112e0
to
0b47cd2
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.
Overall this looks good to me. Just a small nit.
@@ -40,13 +45,15 @@ const factoryMap = new WeakMap(); | |||
|
|||
const prototypeMixinMap = new WeakMap(); | |||
|
|||
let PASSED_FROM_CREATE; | |||
let initCalled; // only used in debug builds to enable the proxy trap | |||
const initCalled = DEBUG ? new WeakSet() : undefined; // only used in debug builds to enable the proxy trap |
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.
I believe you are going to fail IE11 builds due to the usage of WeakSet
.
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.
@chadhietala - WeakSet
is imported from @ember/polyfills
(which uses a WeakMap with a boolean value when an actual WeakSet
is not present).
Implements emberjs/rfcs#451, and fixes the error message so it won't throw if properties aren't passed (
new EmberObject()
)