Skip to content
Snippets Groups Projects
Commit 66abdf43 authored by Mark Miller's avatar Mark Miller
Browse files

Changed strictOnly to onlyStrict

parent 2e320edd
No related branches found
No related tags found
No related merge requests found
Showing
with 11 additions and 11 deletions
......@@ -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() {}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment