test262 icon indicating copy to clipboard operation
test262 copied to clipboard

Some test still use arguments.callee.caller

Open davidot opened this issue 3 years ago • 1 comments

From what I read #797 They use it not directly on arguments but via arguments.callee, so this might be different?

function test2() {
    if(arguments.callee.caller===undefined) {
      called=true;
    } else {
      arguments.callee.caller(true);
    }
}

Is this something that an engine should support or are these tests not correct anymore?

This code is present in at least: test/language/arguments-object/10.6-13-a-2.js test/language/arguments-object/10.6-13-a-3.js

davidot avatar Aug 19 '22 16:08 davidot

I found that this is a bit different and maybe a duplicate of https://github.com/tc39/test262/issues/674 ?

This also has the flag [caller], however as our engine does need to support the web we probably have to implement it anyway.

davidot avatar Aug 31 '22 23:08 davidot