mirror of https://github.com/tc39/test262.git
fix: make callable from function declaration (#3164)
This commit is contained in:
parent
206a3f4932
commit
0fd4111b8b
|
@ -16,9 +16,9 @@ assert.sameValue(
|
|||
const r = new Realm();
|
||||
|
||||
r.evaluate(`
|
||||
0, function fn() {
|
||||
function fn() {
|
||||
return 42;
|
||||
};
|
||||
}
|
||||
`);
|
||||
|
||||
const wrapped = r.evaluate('fn');
|
||||
|
|
Loading…
Reference in New Issue