Changed strictOnly to onlyStrict

This commit is contained in:
Mark Miller 2011-09-24 11:13:02 -07:00
parent 2e320eddb7
commit 66abdf4354
11 changed files with 11 additions and 11 deletions

View File

@ -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;');

View File

@ -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; })();

View File

@ -8,7 +8,7 @@
*
* @description See if a strict delete returns false when deleting a
* non-standard property.
* @strictOnly
* @onlyStrict
*/
var deleted = 'unassigned';

View File

@ -4,7 +4,7 @@
/**
* @description check that all poisoning use the [[ThrowTypeError]]
* function object.
* @strictOnly
* @onlyStrict
*/
var poison = Object.getOwnPropertyDescriptor(function() {}, 'caller').get;

View File

@ -4,6 +4,6 @@
/**
* @description check if "caller" poisoning poisons
* getOwnPropertyDescriptor too
* @strictOnly
* @onlyStrict
*/
Object.getOwnPropertyDescriptor(function(){}, 'caller');

View File

@ -4,6 +4,6 @@
/**
* @description check if "arguments" poisoning poisons
* getOwnPropertyDescriptor too
* @strictOnly
* @onlyStrict
*/
Object.getOwnPropertyDescriptor(function(){}, 'arguments');

View File

@ -4,7 +4,7 @@
/**
* @description check if "caller" poisoning poisons
* hasOwnProperty too
* @strictOnly
* @onlyStrict
*/
(function(){}).hasOwnProperty('caller');

View File

@ -4,7 +4,7 @@
/**
* @description check if "arguments" poisoning poisons
* hasOwnProperty too
* @strictOnly
* @onlyStrict
*/
(function(){}).hasOwnProperty('arguments');

View File

@ -4,7 +4,7 @@
/**
* @description check if "caller" poisoning poisons
* "in" too
* @strictOnly
* @onlyStrict
*/
'caller' in function() {};

View File

@ -4,7 +4,7 @@
/**
* @description check if "arguments" poisoning poisons
* "in" too
* @strictOnly
* @onlyStrict
*/
'arguments' in function() {};

View File

@ -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() {}