Debian Codegraph @

js/src/tests/test262/language/eval-code/direct/this-value-global.js

raw
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: >
5 Direct eval code has the same `this` binding as the calling context (global
6 scope)
7 esid: sec-performeval
8 ---*/
9
10 assert.sameValue(eval('this;'), this);
11
12 reportCompare(0, 0);