Home | History | Annotate | Download | only in harmony

Lines Matching full:species

5 // Flags: --harmony-species --harmony-proxies
7 // Test the ES2015 @@species feature
20 // Subclasses can override @@species to return the another class
23 static get [Symbol.species]() { return MyArray; }
34 static get [Symbol.species]() { return MyObject; }
65 // Defaults when constructor or @@species is missing or non-constructor
68 static get [Symbol.species]() { return undefined; }
78 // Exceptions propagated when getting constructor @@species throws
83 static get [Symbol.species]() { throw new SpeciesError; }
113 static get [Symbol.species]() {
149 // @@species constructor can be a Proxy, and the realm access doesn't