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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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