mirror of https://github.com/tc39/test262.git
Changed strictOnly to onlyStrict
This commit is contained in:
parent
2e320eddb7
commit
66abdf4354
|
@ -4,7 +4,7 @@
|
|||
/**
|
||||
* @description Strict indirect eval should not leak top level
|
||||
* declarations into the global scope
|
||||
* @strictOnly
|
||||
* @onlyStrict
|
||||
*/
|
||||
if (!('foo' in this)) {
|
||||
(1,eval)('"use strict"; var foo = 88;');
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/**
|
||||
* @description When calling a strict anonymous function as a
|
||||
* function, "this" should be bound to undefined.
|
||||
* @strictOnly
|
||||
* @onlyStrict
|
||||
*/
|
||||
|
||||
var that = (function() { return this; })();
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
*
|
||||
* @description See if a strict delete returns false when deleting a
|
||||
* non-standard property.
|
||||
* @strictOnly
|
||||
* @onlyStrict
|
||||
*/
|
||||
|
||||
var deleted = 'unassigned';
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/**
|
||||
* @description check that all poisoning use the [[ThrowTypeError]]
|
||||
* function object.
|
||||
* @strictOnly
|
||||
* @onlyStrict
|
||||
*/
|
||||
var poison = Object.getOwnPropertyDescriptor(function() {}, 'caller').get;
|
||||
|
||||
|
|
|
@ -4,6 +4,6 @@
|
|||
/**
|
||||
* @description check if "caller" poisoning poisons
|
||||
* getOwnPropertyDescriptor too
|
||||
* @strictOnly
|
||||
* @onlyStrict
|
||||
*/
|
||||
Object.getOwnPropertyDescriptor(function(){}, 'caller');
|
||||
|
|
|
@ -4,6 +4,6 @@
|
|||
/**
|
||||
* @description check if "arguments" poisoning poisons
|
||||
* getOwnPropertyDescriptor too
|
||||
* @strictOnly
|
||||
* @onlyStrict
|
||||
*/
|
||||
Object.getOwnPropertyDescriptor(function(){}, 'arguments');
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/**
|
||||
* @description check if "caller" poisoning poisons
|
||||
* hasOwnProperty too
|
||||
* @strictOnly
|
||||
* @onlyStrict
|
||||
*/
|
||||
(function(){}).hasOwnProperty('caller');
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/**
|
||||
* @description check if "arguments" poisoning poisons
|
||||
* hasOwnProperty too
|
||||
* @strictOnly
|
||||
* @onlyStrict
|
||||
*/
|
||||
(function(){}).hasOwnProperty('arguments');
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/**
|
||||
* @description check if "caller" poisoning poisons
|
||||
* "in" too
|
||||
* @strictOnly
|
||||
* @onlyStrict
|
||||
*/
|
||||
'caller' in function() {};
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
/**
|
||||
* @description check if "arguments" poisoning poisons
|
||||
* "in" too
|
||||
* @strictOnly
|
||||
* @onlyStrict
|
||||
*/
|
||||
'arguments' in function() {};
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
* @description Check that all the own property names reported by
|
||||
* Object.getOwnPropertyNames on a strict function are names that
|
||||
* hasOwnProperty agrees are own properties.
|
||||
* @strictOnly
|
||||
* @onlyStrict
|
||||
*/
|
||||
|
||||
function foo() {}
|
||||
|
|
Loading…
Reference in New Issue