You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.
ES6 final tweak Convert index.html to README.md #4: added RegExp.prototype.flags for accessing flags string. Facilitates RegExp subclasses that add flags.
ES6 final tweaks iteration over Map #5: new RegExp(aRegExp, flags) no longer throws. Instead clones first argument but with supplied flags.
ES6 final tweaks ES6: Remove Number.toInteger #8: Smalltalk-like species pattern used in Array methods, etc. to determine constructor for derived objects. let derived = new obj.constructor.species();
The text was updated successfully, but these errors were encountered:
Re: @@match and friends - the point is that calling: "abc".match(re) should now work if re is a regular expression subclass, because String.prototype.match will delegate to re[@@match]. That implies hooking String.prototype.match (etc) in the polyfill.
I did a pass to synchronize with the latest draft. The guts of Promise methods abstract operations need a bit more alignment, but overall I think it's in good shape.
I still have not tackled @@species - pull requests (including tests!) welcome.
Per https://twitter.com/awbjs
clear
methods eliminatedString.prototype.contains
renamed toString.prototype.includes
RegExp.prototype
RegExp.prototype.flags
for accessing flags string. Facilitates RegExp subclasses that add flags.new RegExp(aRegExp, flags)
no longer throws. Instead clones first argument but with supplied flags.this
binding evaluates toundefined
.Array.isArray(new Proxy([ ], { }))
returns true.let derived = new obj.constructor.species();
The text was updated successfully, but these errors were encountered: