mirror of
https://github.com/tc39/test262.git
synced 2025-05-07 16:30:52 +02:00
Some tests specifically concern the application of the `use strict` directive as it appears in JavaScript source code. These tests should *not* be run with the `onlyStrict` flag because relying on the test runner to enable strict mode makes the semantics of the source code irrelevant. Update these tests to use the `noStrict` flag. Other tests concern language semantics that are only valid in strict mode, but the mechanism for enabling strictness is inconseqential. Update these tests to use the `onlyStrict` flag and remove any redundant `use strict` directive prologues contained within. Still other tests are valid both within and outside of strict mode. In keeping with the majority of other tests, do not specify any restrictions on the environments in which these tests may be run.
11 lines
261 B
JavaScript
11 lines
261 B
JavaScript
// Copyright 2011 Google Inc. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
es5id: 13.2_A8_T1
|
|
description: check if "caller" poisoning poisons "in" too
|
|
flags: [onlyStrict]
|
|
---*/
|
|
|
|
'caller' in function() {};
|