BackwardsGraph needs to consider back edges as the backward's root successor
[WebKit-https.git] / JSTests / es6 / RegExp_is_subclassable_correct_prototype_chain.js
1 function test() {
2
3 class R extends RegExp {}
4 var r = new R("baz","g");
5 return r instanceof R && r instanceof RegExp && Object.getPrototypeOf(R) === RegExp;
6       
7 }
8
9 if (!test())
10     throw new Error("Test failed");
11