mirror of
https://github.com/bendtherules/ask262.git
synced 2026-08-19 00:31:06 +00:00
Merge commit '6e92d2345e8231a44556ce7d416451f5f3e6c398' as 'engine262'
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
import { Evaluate } from '../evaluator.mts';
|
||||
import type { ParseNode } from '../parser/ParseNode.mts';
|
||||
|
||||
/** https://tc39.es/ecma262/#sec-grouping-operator-runtime-semantics-evaluation */
|
||||
export function* Evaluate_ParenthesizedExpression({ Expression }: ParseNode.ParenthesizedExpression) {
|
||||
// 1. Return the result of evaluating Expression. This may be of type Reference.
|
||||
return yield* Evaluate(Expression);
|
||||
}
|
||||
Reference in New Issue
Block a user