Skip to content

Commit

Permalink
js-eval: use engine262's own TLA
Browse files Browse the repository at this point in the history
  • Loading branch information
caub committed Sep 7, 2020
1 parent f36ac62 commit d079d80
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/plugins/js-eval/__tests__/jsEvalPlugin-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,12 +109,16 @@ describe('jsEvalPlugin', () => {
await testEval(
`n> function foo(){}; let o={[await 'foo']: await eval('1')}; o`,
),
await testEval(
`e> function foo(){}; let o={[await 'foo']: await eval('1')}; o`,
),
]).toEqual([
'(okay) 2n',
'(okay) 2n',
'(okay) undefined',
'(okay) undefined',
'(okay) { foo: 1 }',
'(okay) { foo: 1 }',
]);
});

Expand Down

0 comments on commit d079d80

Please sign in to comment.