eval-no-args.js (640B)
1 // Copyright (C) 2016 the V8 project authors. All rights reserved. 2 // This code is governed by the BSD license found in the LICENSE file. 3 /*--- 4 description: Error evaluating arguments list for direct eval 5 esid: sec-function-calls-runtime-semantics-evaluation 6 info: | 7 [...] 8 3. If Type(ref) is Reference and IsPropertyReference(ref) is false and 9 GetReferencedName(ref) is "eval", then 10 a. If SameValue(func, %eval%) is true, then 11 i. Let argList be ? ArgumentListEvaluation(Arguments). 12 ii. If argList has no elements, return undefined. 13 ---*/ 14 15 assert.sameValue(eval(), undefined); 16 17 reportCompare(0, 0);