We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
$
SameValue
Currently, the following all log false in Firefox and the spec:
false
const $gOPD = Object.getOwnPropertyDescriptor; $gOPD(RegExp, "$_").get === $gOPD(RegExp, "input").get; $gOPD(RegExp, "$&").get === $gOPD(RegExp, "lastMatch").get; $gOPD(RegExp, "$+").get === $gOPD(RegExp, "lastParen").get; $gOPD(RegExp, "$`").get === $gOPD(RegExp, "leftContext").get; $gOPD(RegExp, "$'").get === $gOPD(RegExp, "rightContext").get;
This differs from the following, which all log true:
true
const $TypedArray = Object.getPrototypeOf(Uint8Array); Array.prototype.values === Array.prototype[Symbol.iterator]; $TypedArray.prototype.values === $TypedArray.prototype[Symbol.iterator]; Set.prototype.values === Set.prototype[Symbol.iterator]; Map.prototype.entries === Map.prototype[Symbol.iterator];
The text was updated successfully, but these errors were encountered:
They log also false in Chrome.
In Safari, the properties are implemented as “magic” value properties, so the argument does not apply.
You can also add:
Date.prototype.toGMTString === Date.prototype.toUTCString
Argument for the change:
Argument for status quo:
Note also that this proposal is at stage 3, which means that changes are supposed to be limited.
Sorry, something went wrong.
No branches or pull requests
Currently, the following all log
false
in Firefox and the spec:This differs from the following, which all log
true
:The text was updated successfully, but these errors were encountered: