mirror of
https://github.com/tc39/test262.git
synced 2025-05-30 03:30:30 +02:00
For each test that asserts the behavior of either "direct" or "indirect" eval (but not both), introduce an equivalent test for the opposite case.
11 lines
322 B
JavaScript
11 lines
322 B
JavaScript
// Copyright (C) 2016 the V8 project authors. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
/*---
|
|
description: >
|
|
Direct eval code has the same `this` binding as the calling context (global
|
|
scope)
|
|
esid: sec-performeval
|
|
---*/
|
|
|
|
assert.sameValue((0,eval)('this;'), this);
|