mirror of
https://github.com/tc39/test262.git
synced 2025-04-08 19:35:28 +02:00
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…
x
Reference in New Issue
Block a user