OLD | NEW |
1 # Copyright 2013 the V8 project authors. All rights reserved. | 1 # Copyright 2013 the V8 project authors. All rights reserved. |
2 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. | 2 # Copyright (C) 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights reserved. |
3 # | 3 # |
4 # Redistribution and use in source and binary forms, with or without | 4 # Redistribution and use in source and binary forms, with or without |
5 # modification, are permitted provided that the following conditions | 5 # modification, are permitted provided that the following conditions |
6 # are met: | 6 # are met: |
7 # 1. Redistributions of source code must retain the above copyright | 7 # 1. Redistributions of source code must retain the above copyright |
8 # notice, this list of conditions and the following disclaimer. | 8 # notice, this list of conditions and the following disclaimer. |
9 # 2. Redistributions in binary form must reproduce the above copyright | 9 # 2. Redistributions in binary form must reproduce the above copyright |
10 # notice, this list of conditions and the following disclaimer in the | 10 # notice, this list of conditions and the following disclaimer in the |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 PASS (function(){(function (){ 'use strict'; delete someDeclaredGlobal;})}) thre
w exception SyntaxError: Delete of an unqualified identifier in strict mode.. | 129 PASS (function(){(function (){ 'use strict'; delete someDeclaredGlobal;})}) thre
w exception SyntaxError: Delete of an unqualified identifier in strict mode.. |
130 PASS 'use strict'; if (0) { someGlobal = 'Shouldn\'t be able to assign this.'; }
; true; is true | 130 PASS 'use strict'; if (0) { someGlobal = 'Shouldn\'t be able to assign this.'; }
; true; is true |
131 PASS 'use strict'; someGlobal = 'Shouldn\'t be able to assign this.'; threw exc
eption ReferenceError: someGlobal is not defined. | 131 PASS 'use strict'; someGlobal = 'Shouldn\'t be able to assign this.'; threw exc
eption ReferenceError: someGlobal is not defined. |
132 FAIL 'use strict'; (function f(){ f = 'shouldn\'t be able to assign to function
expression name'; })() should throw an exception. Was undefined. | 132 FAIL 'use strict'; (function f(){ f = 'shouldn\'t be able to assign to function
expression name'; })() should throw an exception. Was undefined. |
133 PASS 'use strict'; eval('var introducedVariable = "FAIL: variable introduced int
o containing scope";'); introducedVariable threw exception ReferenceError: intro
ducedVariable is not defined. | 133 PASS 'use strict'; eval('var introducedVariable = "FAIL: variable introduced int
o containing scope";'); introducedVariable threw exception ReferenceError: intro
ducedVariable is not defined. |
134 PASS 'use strict'; objectWithReadonlyProperty.prop = 'fail' threw exception Type
Error: Cannot assign to read only property 'prop' of #<Object>. | 134 PASS 'use strict'; objectWithReadonlyProperty.prop = 'fail' threw exception Type
Error: Cannot assign to read only property 'prop' of #<Object>. |
135 PASS 'use strict'; delete objectWithReadonlyProperty.prop threw exception TypeEr
ror: Cannot delete property 'prop' of #<Object>. | 135 PASS 'use strict'; delete objectWithReadonlyProperty.prop threw exception TypeEr
ror: Cannot delete property 'prop' of #<Object>. |
136 PASS 'use strict'; delete objectWithReadonlyProperty[readonlyPropName] threw exc
eption TypeError: Cannot delete property 'prop' of #<Object>. | 136 PASS 'use strict'; delete objectWithReadonlyProperty[readonlyPropName] threw exc
eption TypeError: Cannot delete property 'prop' of #<Object>. |
137 PASS 'use strict'; ++eval threw exception SyntaxError: Prefix increment/decremen
t may not have eval or arguments operand in strict mode. | 137 PASS 'use strict'; ++eval threw exception SyntaxError: Prefix increment/decremen
t may not have eval or arguments operand in strict mode. |
138 PASS (function(){'use strict'; ++eval}) threw exception SyntaxError: Prefix incr
ement/decrement may not have eval or arguments operand in strict mode. | 138 PASS (function(){'use strict'; ++eval}) threw exception SyntaxError: Prefix incr
ement/decrement may not have eval or arguments operand in strict mode. |
139 PASS 'use strict'; eval++ threw exception SyntaxError: Prefix increment/decremen
t may not have eval or arguments operand in strict mode. | 139 PASS 'use strict'; eval++ threw exception SyntaxError: Postfix increment/decreme
nt may not have eval or arguments operand in strict mode. |
140 PASS (function(){'use strict'; eval++}) threw exception SyntaxError: Prefix incr
ement/decrement may not have eval or arguments operand in strict mode. | 140 PASS (function(){'use strict'; eval++}) threw exception SyntaxError: Postfix inc
rement/decrement may not have eval or arguments operand in strict mode. |
141 PASS 'use strict'; --eval threw exception SyntaxError: Prefix increment/decremen
t may not have eval or arguments operand in strict mode. | 141 PASS 'use strict'; --eval threw exception SyntaxError: Prefix increment/decremen
t may not have eval or arguments operand in strict mode. |
142 PASS (function(){'use strict'; --eval}) threw exception SyntaxError: Prefix incr
ement/decrement may not have eval or arguments operand in strict mode. | 142 PASS (function(){'use strict'; --eval}) threw exception SyntaxError: Prefix incr
ement/decrement may not have eval or arguments operand in strict mode. |
143 PASS 'use strict'; eval-- threw exception SyntaxError: Prefix increment/decremen
t may not have eval or arguments operand in strict mode. | 143 PASS 'use strict'; eval-- threw exception SyntaxError: Postfix increment/decreme
nt may not have eval or arguments operand in strict mode. |
144 PASS (function(){'use strict'; eval--}) threw exception SyntaxError: Prefix incr
ement/decrement may not have eval or arguments operand in strict mode. | 144 PASS (function(){'use strict'; eval--}) threw exception SyntaxError: Postfix inc
rement/decrement may not have eval or arguments operand in strict mode. |
145 PASS 'use strict'; function f() { ++arguments } threw exception SyntaxError: Pre
fix increment/decrement may not have eval or arguments operand in strict mode. | 145 PASS 'use strict'; function f() { ++arguments } threw exception SyntaxError: Pre
fix increment/decrement may not have eval or arguments operand in strict mode. |
146 PASS (function(){'use strict'; function f() { ++arguments }}) threw exception Sy
ntaxError: Prefix increment/decrement may not have eval or arguments operand in
strict mode. | 146 PASS (function(){'use strict'; function f() { ++arguments }}) threw exception Sy
ntaxError: Prefix increment/decrement may not have eval or arguments operand in
strict mode. |
147 PASS 'use strict'; function f() { arguments++ } threw exception SyntaxError: Pre
fix increment/decrement may not have eval or arguments operand in strict mode. | 147 PASS 'use strict'; function f() { arguments++ } threw exception SyntaxError: Pos
tfix increment/decrement may not have eval or arguments operand in strict mode. |
148 PASS (function(){'use strict'; function f() { arguments++ }}) threw exception Sy
ntaxError: Prefix increment/decrement may not have eval or arguments operand in
strict mode. | 148 PASS (function(){'use strict'; function f() { arguments++ }}) threw exception Sy
ntaxError: Postfix increment/decrement may not have eval or arguments operand in
strict mode. |
149 PASS 'use strict'; function f() { --arguments } threw exception SyntaxError: Pre
fix increment/decrement may not have eval or arguments operand in strict mode. | 149 PASS 'use strict'; function f() { --arguments } threw exception SyntaxError: Pre
fix increment/decrement may not have eval or arguments operand in strict mode. |
150 PASS (function(){'use strict'; function f() { --arguments }}) threw exception Sy
ntaxError: Prefix increment/decrement may not have eval or arguments operand in
strict mode. | 150 PASS (function(){'use strict'; function f() { --arguments }}) threw exception Sy
ntaxError: Prefix increment/decrement may not have eval or arguments operand in
strict mode. |
151 PASS 'use strict'; function f() { arguments-- } threw exception SyntaxError: Pre
fix increment/decrement may not have eval or arguments operand in strict mode. | 151 PASS 'use strict'; function f() { arguments-- } threw exception SyntaxError: Pos
tfix increment/decrement may not have eval or arguments operand in strict mode. |
152 PASS (function(){'use strict'; function f() { arguments-- }}) threw exception Sy
ntaxError: Prefix increment/decrement may not have eval or arguments operand in
strict mode. | 152 PASS (function(){'use strict'; function f() { arguments-- }}) threw exception Sy
ntaxError: Postfix increment/decrement may not have eval or arguments operand in
strict mode. |
153 PASS global.eval('"use strict"; if (0) ++arguments; true;') threw exception Synt
axError: Prefix increment/decrement may not have eval or arguments operand in st
rict mode. | 153 PASS global.eval('"use strict"; if (0) ++arguments; true;') threw exception Synt
axError: Prefix increment/decrement may not have eval or arguments operand in st
rict mode. |
154 PASS 'use strict'; ++(1, eval) threw exception ReferenceError: Invalid left-hand
side expression in prefix operation. | 154 PASS 'use strict'; ++(1, eval) threw exception ReferenceError: Invalid left-hand
side expression in prefix operation. |
155 FAIL (function(){'use strict'; ++(1, eval)}) should throw an exception. Was func
tion (){'use strict'; ++(1, eval)}. | 155 FAIL (function(){'use strict'; ++(1, eval)}) should throw an exception. Was func
tion (){'use strict'; ++(1, eval)}. |
156 PASS 'use strict'; (1, eval)++ threw exception ReferenceError: Invalid left-hand
side expression in postfix operation. | 156 PASS 'use strict'; (1, eval)++ threw exception ReferenceError: Invalid left-hand
side expression in postfix operation. |
157 FAIL (function(){'use strict'; (1, eval)++}) should throw an exception. Was func
tion (){'use strict'; (1, eval)++}. | 157 FAIL (function(){'use strict'; (1, eval)++}) should throw an exception. Was func
tion (){'use strict'; (1, eval)++}. |
158 PASS 'use strict'; --(1, eval) threw exception ReferenceError: Invalid left-hand
side expression in prefix operation. | 158 PASS 'use strict'; --(1, eval) threw exception ReferenceError: Invalid left-hand
side expression in prefix operation. |
159 FAIL (function(){'use strict'; --(1, eval)}) should throw an exception. Was func
tion (){'use strict'; --(1, eval)}. | 159 FAIL (function(){'use strict'; --(1, eval)}) should throw an exception. Was func
tion (){'use strict'; --(1, eval)}. |
160 PASS 'use strict'; (1, eval)-- threw exception ReferenceError: Invalid left-hand
side expression in postfix operation. | 160 PASS 'use strict'; (1, eval)-- threw exception ReferenceError: Invalid left-hand
side expression in postfix operation. |
161 FAIL (function(){'use strict'; (1, eval)--}) should throw an exception. Was func
tion (){'use strict'; (1, eval)--}. | 161 FAIL (function(){'use strict'; (1, eval)--}) should throw an exception. Was func
tion (){'use strict'; (1, eval)--}. |
162 FAIL 'use strict'; function f() { ++(1, arguments) } should throw an exception.
Was use strict. | 162 FAIL 'use strict'; function f() { ++(1, arguments) } should throw an exception.
Was use strict. |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 PASS try { throw 1; } catch (e) { aGlobal = true; } is true | 228 PASS try { throw 1; } catch (e) { aGlobal = true; } is true |
229 PASS (function () { try { throw 1; } catch (e) { aGlobal = true; }})(); aGlobal;
is true | 229 PASS (function () { try { throw 1; } catch (e) { aGlobal = true; }})(); aGlobal;
is true |
230 PASS (function () {try { throw 1; } catch (e) { aGlobal = true; }})(); aGlobal;
is true | 230 PASS (function () {try { throw 1; } catch (e) { aGlobal = true; }})(); aGlobal;
is true |
231 FAIL String(Object.getOwnPropertyDescriptor(function() { "use strict"; }, "calle
r").get) should be function () { | 231 FAIL String(Object.getOwnPropertyDescriptor(function() { "use strict"; }, "calle
r").get) should be function () { |
232 [native code] | 232 [native code] |
233 }. Was function ThrowTypeError() { [native code] }. | 233 }. Was function ThrowTypeError() { [native code] }. |
234 PASS successfullyParsed is true | 234 PASS successfullyParsed is true |
235 | 235 |
236 TEST COMPLETE | 236 TEST COMPLETE |
237 | 237 |
OLD | NEW |