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