built-ins/global/*: make all indentation consistent (depth & character) (#1438)

This commit is contained in:
Rick Waldron 2018-02-15 15:25:21 -05:00 committed by Leo Balter
parent 7108616b8e
commit 6e7ba5060c
23 changed files with 134 additions and 134 deletions

View File

@ -11,5 +11,5 @@ flags: [onlyStrict]
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
NaN = 12; NaN = 12;
}); });

View File

@ -11,5 +11,5 @@ flags: [onlyStrict]
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
undefined = 12; undefined = 12;
}); });

View File

@ -10,10 +10,10 @@ description: >
flags: [onlyStrict] flags: [onlyStrict]
---*/ ---*/
var objBak = Object; var objBak = Object;
try { try {
Object = 12; Object = 12;
} finally { } finally {
Object = objBak; Object = objBak;
} }

View File

@ -10,9 +10,9 @@ description: >
flags: [onlyStrict] flags: [onlyStrict]
---*/ ---*/
var numBak = Number; var numBak = Number;
try { try {
Number = 12; Number = 12;
} finally { } finally {
Number = numBak; Number = numBak;
} }

View File

@ -10,16 +10,16 @@ description: Global execution context - Value Properties
---*/ ---*/
//CHECK#1 //CHECK#1
if ( NaN === null ) { if (NaN === null) {
$ERROR("#1: NaN === null"); $ERROR("#1: NaN === null");
} }
//CHECK#2 //CHECK#2
if ( Infinity === null ) { if (Infinity === null) {
$ERROR("#2: Infinity === null"); $ERROR("#2: Infinity === null");
} }
//CHECK#3 //CHECK#3
if ( undefined === null ) { if (undefined === null) {
$ERROR("#3: undefined === null"); $ERROR("#3: undefined === null");
} }

View File

@ -10,46 +10,46 @@ description: Global execution context - Function Properties
---*/ ---*/
//CHECK#4 //CHECK#4
if ( eval === null ) { if (eval === null) {
$ERROR("#4: eval === null"); $ERROR("#4: eval === null");
} }
//CHECK#5 //CHECK#5
if ( parseInt === null ) { if (parseInt === null) {
$ERROR("#5: parseInt === null"); $ERROR("#5: parseInt === null");
} }
//CHECK#6 //CHECK#6
if ( parseFloat === null ) { if (parseFloat === null) {
$ERROR("#6: parseFloat === null"); $ERROR("#6: parseFloat === null");
} }
//CHECK#7 //CHECK#7
if ( isNaN === null ) { if (isNaN === null) {
$ERROR("#7: isNaN === null"); $ERROR("#7: isNaN === null");
} }
//CHECK#8 //CHECK#8
if ( isFinite === null ) { if (isFinite === null) {
$ERROR("#8: isFinite === null"); $ERROR("#8: isFinite === null");
} }
//CHECK#9 //CHECK#9
if ( decodeURI === null ) { if (decodeURI === null) {
$ERROR("#9: decodeURI === null"); $ERROR("#9: decodeURI === null");
} }
//CHECK#10 //CHECK#10
if ( decodeURIComponent === null ) { if (decodeURIComponent === null) {
$ERROR("#10: decodeURIComponent === null"); $ERROR("#10: decodeURIComponent === null");
} }
//CHECK#11 //CHECK#11
if ( encodeURI === null ) { if (encodeURI === null) {
$ERROR("#11: encodeURI === null"); $ERROR("#11: encodeURI === null");
} }
//CHECK#12 //CHECK#12
if ( encodeURIComponent === null ) { if (encodeURIComponent === null) {
$ERROR("#12: encodeURIComponent === null"); $ERROR("#12: encodeURIComponent === null");
} }

View File

@ -10,76 +10,76 @@ description: Global execution context - Constructor Properties
---*/ ---*/
//CHECK#13 //CHECK#13
if ( Object === null ) { if (Object === null) {
$ERROR("#13: Object === null"); $ERROR("#13: Object === null");
} }
//CHECK#14 //CHECK#14
if ( Function === null ) { if (Function === null) {
$ERROR("#14: Function === null"); $ERROR("#14: Function === null");
} }
//CHECK#15 //CHECK#15
if ( String === null ) { if (String === null) {
$ERROR("#15: String === null"); $ERROR("#15: String === null");
} }
//CHECK#16 //CHECK#16
if ( Number === null ) { if (Number === null) {
$ERROR("#16: Number === null"); $ERROR("#16: Number === null");
} }
//CHECK#17 //CHECK#17
if ( Array === null ) { if (Array === null) {
$ERROR("#17: Array === null"); $ERROR("#17: Array === null");
} }
//CHECK#18 //CHECK#18
if ( Boolean === null ) { if (Boolean === null) {
$ERROR("#20: Boolean === null"); $ERROR("#20: Boolean === null");
} }
//CHECK#18 //CHECK#18
if ( Date === null ) { if (Date === null) {
$ERROR("#18: Date === null"); $ERROR("#18: Date === null");
} }
//CHECK#19 //CHECK#19
if ( RegExp === null ) { if (RegExp === null) {
$ERROR("#19: RegExp === null"); $ERROR("#19: RegExp === null");
} }
//CHECK#20 //CHECK#20
if ( Error === null ) { if (Error === null) {
$ERROR("#20: Error === null"); $ERROR("#20: Error === null");
} }
//CHECK#21 //CHECK#21
if ( EvalError === null ) { if (EvalError === null) {
$ERROR("#21: EvalError === null"); $ERROR("#21: EvalError === null");
} }
//CHECK#22 //CHECK#22
if ( RangeError === null ) { if (RangeError === null) {
$ERROR("#22: RangeError === null"); $ERROR("#22: RangeError === null");
} }
//CHECK#23 //CHECK#23
if ( ReferenceError === null ) { if (ReferenceError === null) {
$ERROR("#23: ReferenceError === null"); $ERROR("#23: ReferenceError === null");
} }
//CHECK#24 //CHECK#24
if ( SyntaxError === null ) { if (SyntaxError === null) {
$ERROR("#24: SyntaxError === null"); $ERROR("#24: SyntaxError === null");
} }
//CHECK#25 //CHECK#25
if ( TypeError === null ) { if (TypeError === null) {
$ERROR("#25: TypeError === null"); $ERROR("#25: TypeError === null");
} }
//CHECK#26 //CHECK#26
if ( URIError === null ) { if (URIError === null) {
$ERROR("#26: URIError === null"); $ERROR("#26: URIError === null");
} }

View File

@ -10,6 +10,6 @@ description: Global execution context - Other Properties
---*/ ---*/
//CHECK#27 //CHECK#27
if ( Math === null ) { if (Math === null) {
$ERROR("#27: Math === null"); $ERROR("#27: Math === null");
} }

View File

@ -11,17 +11,17 @@ description: Function execution context - Value Properties
function test() { function test() {
//CHECK#1 //CHECK#1
if ( NaN === null ) { if (NaN === null) {
$ERROR("#1: NaN === null"); $ERROR("#1: NaN === null");
} }
//CHECK#2 //CHECK#2
if ( Infinity === null ) { if (Infinity === null) {
$ERROR("#2: Infinity === null"); $ERROR("#2: Infinity === null");
} }
//CHECK#3 //CHECK#3
if ( undefined === null ) { if (undefined === null) {
$ERROR("#3: undefined === null"); $ERROR("#3: undefined === null");
} }
} }

View File

@ -11,47 +11,47 @@ description: Function execution context - Function Properties
function test() { function test() {
//CHECK#4 //CHECK#4
if ( eval === null ) { if (eval === null) {
$ERROR("#4: eval === null"); $ERROR("#4: eval === null");
} }
//CHECK#5 //CHECK#5
if ( parseInt === null ) { if (parseInt === null) {
$ERROR("#5: parseInt === null"); $ERROR("#5: parseInt === null");
} }
//CHECK#6 //CHECK#6
if ( parseFloat === null ) { if (parseFloat === null) {
$ERROR("#6: parseFloat === null"); $ERROR("#6: parseFloat === null");
} }
//CHECK#7 //CHECK#7
if ( isNaN === null ) { if (isNaN === null) {
$ERROR("#7: isNaN === null"); $ERROR("#7: isNaN === null");
} }
//CHECK#8 //CHECK#8
if ( isFinite === null ) { if (isFinite === null) {
$ERROR("#8: isFinite === null"); $ERROR("#8: isFinite === null");
} }
//CHECK#9 //CHECK#9
if ( decodeURI === null ) { if (decodeURI === null) {
$ERROR("#9: decodeURI === null"); $ERROR("#9: decodeURI === null");
} }
//CHECK#10 //CHECK#10
if ( decodeURIComponent === null ) { if (decodeURIComponent === null) {
$ERROR("#10: decodeURIComponent === null"); $ERROR("#10: decodeURIComponent === null");
} }
//CHECK#11 //CHECK#11
if ( encodeURI === null ) { if (encodeURI === null) {
$ERROR("#11: encodeURI === null"); $ERROR("#11: encodeURI === null");
} }
//CHECK#12 //CHECK#12
if ( encodeURIComponent === null ) { if (encodeURIComponent === null) {
$ERROR("#12: encodeURIComponent === null"); $ERROR("#12: encodeURIComponent === null");
} }
} }

View File

@ -11,77 +11,77 @@ description: Function execution context - Constructor Properties
function test() { function test() {
//CHECK#13 //CHECK#13
if ( Object === null ) { if (Object === null) {
$ERROR("#13: Object === null"); $ERROR("#13: Object === null");
} }
//CHECK#14 //CHECK#14
if ( Function === null ) { if (Function === null) {
$ERROR("#14: Function === null"); $ERROR("#14: Function === null");
} }
//CHECK#15 //CHECK#15
if ( String === null ) { if (String === null) {
$ERROR("#15: String === null"); $ERROR("#15: String === null");
} }
//CHECK#16 //CHECK#16
if ( Number === null ) { if (Number === null) {
$ERROR("#16: Function === null"); $ERROR("#16: Function === null");
} }
//CHECK#17 //CHECK#17
if ( Array === null ) { if (Array === null) {
$ERROR("#17: Array === null"); $ERROR("#17: Array === null");
} }
//CHECK#18 //CHECK#18
if ( Boolean === null ) { if (Boolean === null) {
$ERROR("#20: Boolean === null"); $ERROR("#20: Boolean === null");
} }
//CHECK#18 //CHECK#18
if ( Date === null ) { if (Date === null) {
$ERROR("#18: Date === null"); $ERROR("#18: Date === null");
} }
//CHECK#19 //CHECK#19
if ( RegExp === null ) { if (RegExp === null) {
$ERROR("#19: RegExp === null"); $ERROR("#19: RegExp === null");
} }
//CHECK#20 //CHECK#20
if ( Error === null ) { if (Error === null) {
$ERROR("#20: Error === null"); $ERROR("#20: Error === null");
} }
//CHECK#21 //CHECK#21
if ( EvalError === null ) { if (EvalError === null) {
$ERROR("#21: EvalError === null"); $ERROR("#21: EvalError === null");
} }
//CHECK#22 //CHECK#22
if ( RangeError === null ) { if (RangeError === null) {
$ERROR("#22: RangeError === null"); $ERROR("#22: RangeError === null");
} }
//CHECK#23 //CHECK#23
if ( ReferenceError === null ) { if (ReferenceError === null) {
$ERROR("#23: ReferenceError === null"); $ERROR("#23: ReferenceError === null");
} }
//CHECK#24 //CHECK#24
if ( SyntaxError === null ) { if (SyntaxError === null) {
$ERROR("#24: SyntaxError === null"); $ERROR("#24: SyntaxError === null");
} }
//CHECK#25 //CHECK#25
if ( TypeError === null ) { if (TypeError === null) {
$ERROR("#25: TypeError === null"); $ERROR("#25: TypeError === null");
} }
//CHECK#26 //CHECK#26
if ( URIError === null ) { if (URIError === null) {
$ERROR("#26: URIError === null"); $ERROR("#26: URIError === null");
} }
} }

View File

@ -11,7 +11,7 @@ description: Function execution context - Other Properties
function test() { function test() {
//CHECK#27 //CHECK#27
if ( Math === null ) { if (Math === null) {
$ERROR("#27: Math === null"); $ERROR("#27: Math === null");
} }
} }

View File

@ -9,11 +9,11 @@ description: Global execution context - Value Properties
//CHECK#1 //CHECK#1
for (var x in this) { for (var x in this) {
if ( x === 'NaN' ) { if (x === 'NaN') {
$ERROR("#1: 'NaN' have attribute DontEnum"); $ERROR("#1: 'NaN' have attribute DontEnum");
} else if ( x === 'Infinity' ) { } else if (x === 'Infinity') {
$ERROR("#1: 'Infinity' have attribute DontEnum"); $ERROR("#1: 'Infinity' have attribute DontEnum");
} else if ( x === 'undefined' ) { } else if (x === 'undefined') {
$ERROR("#1: 'undefined' have attribute DontEnum"); $ERROR("#1: 'undefined' have attribute DontEnum");
} }
} }

View File

@ -9,23 +9,23 @@ description: Global execution context - Function Properties
//CHECK#1 //CHECK#1
for (var x in this) { for (var x in this) {
if ( x === 'eval' ) { if (x === 'eval') {
$ERROR("#1: 'eval' have attribute DontEnum"); $ERROR("#1: 'eval' have attribute DontEnum");
} else if ( x === 'parseInt' ) { } else if (x === 'parseInt') {
$ERROR("#1: 'parseInt' have attribute DontEnum"); $ERROR("#1: 'parseInt' have attribute DontEnum");
} else if ( x === 'parseFloat' ) { } else if (x === 'parseFloat') {
$ERROR("#1: 'parseFloat' have attribute DontEnum"); $ERROR("#1: 'parseFloat' have attribute DontEnum");
} else if ( x === 'isNaN' ) { } else if (x === 'isNaN') {
$ERROR("#1: 'isNaN' have attribute DontEnum"); $ERROR("#1: 'isNaN' have attribute DontEnum");
} else if ( x === 'isFinite' ) { } else if (x === 'isFinite') {
$ERROR("#1: 'isFinite' have attribute DontEnum"); $ERROR("#1: 'isFinite' have attribute DontEnum");
} else if ( x === 'decodeURI' ) { } else if (x === 'decodeURI') {
$ERROR("#1: 'decodeURI' have attribute DontEnum"); $ERROR("#1: 'decodeURI' have attribute DontEnum");
} else if ( x === 'decodeURIComponent' ) { } else if (x === 'decodeURIComponent') {
$ERROR("#1: 'decodeURIComponent' have attribute DontEnum"); $ERROR("#1: 'decodeURIComponent' have attribute DontEnum");
} else if ( x === 'encodeURI' ) { } else if (x === 'encodeURI') {
$ERROR("#1: 'encodeURI' have attribute DontEnum"); $ERROR("#1: 'encodeURI' have attribute DontEnum");
} else if ( x === 'encodeURIComponent' ) { } else if (x === 'encodeURIComponent') {
$ERROR("#1: 'encodeURIComponent' have attribute DontEnum"); $ERROR("#1: 'encodeURIComponent' have attribute DontEnum");
} }
} }

View File

@ -9,35 +9,35 @@ description: Global execution context - Constructor Properties
//CHECK#1 //CHECK#1
for (var x in this) { for (var x in this) {
if ( x === 'Object' ) { if (x === 'Object') {
$ERROR("#1: 'property 'Object' have attribute DontEnum"); $ERROR("#1: 'property 'Object' have attribute DontEnum");
} else if ( x === 'Function') { } else if (x === 'Function') {
$ERROR("#1: 'Function' have attribute DontEnum"); $ERROR("#1: 'Function' have attribute DontEnum");
} else if ( x === 'String' ) { } else if (x === 'String') {
$ERROR("#1: 'String' have attribute DontEnum"); $ERROR("#1: 'String' have attribute DontEnum");
} else if ( x === 'Number' ) { } else if (x === 'Number') {
$ERROR("#1: 'Number' have attribute DontEnum"); $ERROR("#1: 'Number' have attribute DontEnum");
} else if ( x === 'Array' ) { } else if (x === 'Array') {
$ERROR("#1: 'Array' have attribute DontEnum"); $ERROR("#1: 'Array' have attribute DontEnum");
} else if ( x === 'Boolean' ) { } else if (x === 'Boolean') {
$ERROR("#1: 'Boolean' have attribute DontEnum"); $ERROR("#1: 'Boolean' have attribute DontEnum");
} else if ( x === 'Date' ) { } else if (x === 'Date') {
$ERROR("#1: 'Date' have attribute DontEnum"); $ERROR("#1: 'Date' have attribute DontEnum");
} else if ( x === 'RegExp' ) { } else if (x === 'RegExp') {
$ERROR("#1: 'RegExp' have attribute DontEnum"); $ERROR("#1: 'RegExp' have attribute DontEnum");
} else if ( x === 'Error' ) { } else if (x === 'Error') {
$ERROR("#1: 'Error' have attribute DontEnum"); $ERROR("#1: 'Error' have attribute DontEnum");
} else if ( x === 'EvalError' ) { } else if (x === 'EvalError') {
$ERROR("#1: 'EvalError' have attribute DontEnum"); $ERROR("#1: 'EvalError' have attribute DontEnum");
} else if ( x === 'RangeError' ) { } else if (x === 'RangeError') {
$ERROR("#1: 'RangeError' have attribute DontEnum"); $ERROR("#1: 'RangeError' have attribute DontEnum");
} else if ( x === 'ReferenceError' ) { } else if (x === 'ReferenceError') {
$ERROR("#1: 'ReferenceError' have attribute DontEnum"); $ERROR("#1: 'ReferenceError' have attribute DontEnum");
} else if ( x === 'SyntaxError' ) { } else if (x === 'SyntaxError') {
$ERROR("#1: 'SyntaxError' have attribute DontEnum"); $ERROR("#1: 'SyntaxError' have attribute DontEnum");
} else if ( x === 'TypeError' ) { } else if (x === 'TypeError') {
$ERROR("#1: 'TypeError' have attribute DontEnum"); $ERROR("#1: 'TypeError' have attribute DontEnum");
} else if ( x === 'URIError' ) { } else if (x === 'URIError') {
$ERROR("#1: 'URIError' have attribute DontEnum"); $ERROR("#1: 'URIError' have attribute DontEnum");
} }
} }

View File

@ -9,7 +9,7 @@ description: Global execution context - Other Properties
//CHECK#1 //CHECK#1
for (var x in this) { for (var x in this) {
if ( x === 'Math' ) { if (x === 'Math') {
$ERROR("#1: 'Math' have attribute DontEnum"); $ERROR("#1: 'Math' have attribute DontEnum");
} }
} }

View File

@ -11,13 +11,13 @@ flags: [noStrict]
function test() { function test() {
//CHECK#1 //CHECK#1
for (var x in this) { for (var x in this) {
if ( x === 'NaN' ) { if (x === 'NaN') {
$ERROR("#1: 'NaN' have attribute DontEnum"); $ERROR("#1: 'NaN' have attribute DontEnum");
} else if ( x === 'Infinity' ) { } else if (x === 'Infinity') {
$ERROR("#1: 'Infinity' have attribute DontEnum"); $ERROR("#1: 'Infinity' have attribute DontEnum");
} else if ( x === 'undefined' ) { } else if (x === 'undefined') {
$ERROR("#1: 'undefined' have attribute DontEnum"); $ERROR("#1: 'undefined' have attribute DontEnum");
} }
} }
} }

View File

@ -11,25 +11,25 @@ flags: [noStrict]
function test() { function test() {
//CHECK#1 //CHECK#1
for (var x in this) { for (var x in this) {
if ( x === 'eval' ) { if (x === 'eval') {
$ERROR("#1: 'eval' have attribute DontEnum"); $ERROR("#1: 'eval' have attribute DontEnum");
} else if ( x === 'parseInt' ) { } else if (x === 'parseInt') {
$ERROR("#1: 'parseInt' have attribute DontEnum"); $ERROR("#1: 'parseInt' have attribute DontEnum");
} else if ( x === 'parseFloat' ) { } else if (x === 'parseFloat') {
$ERROR("#1: 'parseFloat' have attribute DontEnum"); $ERROR("#1: 'parseFloat' have attribute DontEnum");
} else if ( x === 'isNaN' ) { } else if (x === 'isNaN') {
$ERROR("#1: 'isNaN' have attribute DontEnum"); $ERROR("#1: 'isNaN' have attribute DontEnum");
} else if ( x === 'isFinite' ) { } else if (x === 'isFinite') {
$ERROR("#1: 'isFinite' have attribute DontEnum"); $ERROR("#1: 'isFinite' have attribute DontEnum");
} else if ( x === 'decodeURI' ) { } else if (x === 'decodeURI') {
$ERROR("#1: 'decodeURI' have attribute DontEnum"); $ERROR("#1: 'decodeURI' have attribute DontEnum");
} else if ( x === 'decodeURIComponent' ) { } else if (x === 'decodeURIComponent') {
$ERROR("#1: 'decodeURIComponent' have attribute DontEnum"); $ERROR("#1: 'decodeURIComponent' have attribute DontEnum");
} else if ( x === 'encodeURI' ) { } else if (x === 'encodeURI') {
$ERROR("#1: 'encodeURI' have attribute DontEnum"); $ERROR("#1: 'encodeURI' have attribute DontEnum");
} else if ( x === 'encodeURIComponent' ) { } else if (x === 'encodeURIComponent') {
$ERROR("#1: 'encodeURIComponent' have attribute DontEnum"); $ERROR("#1: 'encodeURIComponent' have attribute DontEnum");
} }
} }
} }

View File

@ -11,37 +11,37 @@ flags: [noStrict]
function test() { function test() {
//CHECK#1 //CHECK#1
for (var x in this) { for (var x in this) {
if ( x === 'Object' ) { if (x === 'Object') {
$ERROR("#1: 'property 'Object' have attribute DontEnum"); $ERROR("#1: 'property 'Object' have attribute DontEnum");
} else if ( x === 'Function') { } else if (x === 'Function') {
$ERROR("#1: 'Function' have attribute DontEnum"); $ERROR("#1: 'Function' have attribute DontEnum");
} else if ( x === 'String' ) { } else if (x === 'String') {
$ERROR("#1: 'String' have attribute DontEnum"); $ERROR("#1: 'String' have attribute DontEnum");
} else if ( x === 'Number' ) { } else if (x === 'Number') {
$ERROR("#1: 'Number' have attribute DontEnum"); $ERROR("#1: 'Number' have attribute DontEnum");
} else if ( x === 'Array' ) { } else if (x === 'Array') {
$ERROR("#1: 'Array' have attribute DontEnum"); $ERROR("#1: 'Array' have attribute DontEnum");
} else if ( x === 'Boolean' ) { } else if (x === 'Boolean') {
$ERROR("#1: 'Boolean' have attribute DontEnum"); $ERROR("#1: 'Boolean' have attribute DontEnum");
} else if ( x === 'Date' ) { } else if (x === 'Date') {
$ERROR("#1: 'Date' have attribute DontEnum"); $ERROR("#1: 'Date' have attribute DontEnum");
} else if ( x === 'RegExp' ) { } else if (x === 'RegExp') {
$ERROR("#1: 'RegExp' have attribute DontEnum"); $ERROR("#1: 'RegExp' have attribute DontEnum");
} else if ( x === 'Error' ) { } else if (x === 'Error') {
$ERROR("#1: 'Error' have attribute DontEnum"); $ERROR("#1: 'Error' have attribute DontEnum");
} else if ( x === 'EvalError' ) { } else if (x === 'EvalError') {
$ERROR("#1: 'EvalError' have attribute DontEnum"); $ERROR("#1: 'EvalError' have attribute DontEnum");
} else if ( x === 'RangeError' ) { } else if (x === 'RangeError') {
$ERROR("#1: 'RangeError' have attribute DontEnum"); $ERROR("#1: 'RangeError' have attribute DontEnum");
} else if ( x === 'ReferenceError' ) { } else if (x === 'ReferenceError') {
$ERROR("#1: 'ReferenceError' have attribute DontEnum"); $ERROR("#1: 'ReferenceError' have attribute DontEnum");
} else if ( x === 'SyntaxError' ) { } else if (x === 'SyntaxError') {
$ERROR("#1: 'SyntaxError' have attribute DontEnum"); $ERROR("#1: 'SyntaxError' have attribute DontEnum");
} else if ( x === 'TypeError' ) { } else if (x === 'TypeError') {
$ERROR("#1: 'TypeError' have attribute DontEnum"); $ERROR("#1: 'TypeError' have attribute DontEnum");
} else if ( x === 'URIError' ) { } else if (x === 'URIError') {
$ERROR("#1: 'URIError' have attribute DontEnum"); $ERROR("#1: 'URIError' have attribute DontEnum");
} }
} }
} }

View File

@ -11,7 +11,7 @@ flags: [noStrict]
function test() { function test() {
//CHECK#1 //CHECK#1
for (var x in this) { for (var x in this) {
if ( x === 'Math' ) { if (x === 'Math') {
$ERROR("#1: 'Math' have attribute DontEnum"); $ERROR("#1: 'Math' have attribute DontEnum");
} }
} }

View File

@ -12,5 +12,5 @@ description: >
var global = this; var global = this;
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
new global; new global;
}); });

View File

@ -12,5 +12,5 @@ description: >
var global = this; var global = this;
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
new global(); new global();
}); });

View File

@ -10,5 +10,5 @@ description: It is not possible to invoke the global object as a function
var global = this; var global = this;
assert.throws(TypeError, function() { assert.throws(TypeError, function() {
global(); global();
}); });