BackwardsGraph needs to consider back edges as the backward's root successor
[WebKit-https.git] / JSTests / es6 / new.target_assignment_is_an_early_error.js
1 function test() {
2
3 var passed = false;
4 new function f() {
5   passed = (new.target === f);
6 }();
7
8 try {
9   Function("new.target = function(){};");
10 } catch(e) {
11   return passed;
12 }
13       
14 }
15
16 if (!test())
17     throw new Error("Test failed");
18