We should not keep the JavaScript tests inside the Source/JavaScriptCore/ directory.
[WebKit-https.git] / JSTests / es6 / RegExp_is_subclassable_RegExp.prototype.test.js
1 function test() {
2
3 class R extends RegExp {}
4 var r = new R("baz");
5 return r.test("foobarbaz");
6       
7 }
8
9 if (!test())
10     throw new Error("Test failed");
11