fix: make callable from function declaration (#3164)

This commit is contained in:
Rick Waldron 2021-08-25 16:04:05 -04:00 committed by GitHub
parent 206a3f4932
commit 0fd4111b8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -16,9 +16,9 @@ assert.sameValue(
const r = new Realm();
r.evaluate(`
0, function fn() {
function fn() {
return 42;
};
}
`);
const wrapped = r.evaluate('fn');