зеркало из https://github.com/mozilla/gecko-dev.git
Add testcase for bug 476088. r=jruderman
This commit is contained in:
Родитель
0d274161b8
Коммит
08b1cb24f1
|
@ -2,6 +2,7 @@ url-prefix ../../jsreftest.html?test=js1_8_5/regress/
|
|||
script no-array-comprehension-length-limit.js
|
||||
script regress-373843.js
|
||||
script regress-383902.js
|
||||
require-or(debugMode,skip) script regress-476088.js
|
||||
script regress-500528.js
|
||||
script regress-533876.js
|
||||
script regress-541255-0.js
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
// Any copyright is dedicated to the Public Domain.
|
||||
// http://creativecommons.org/licenses/publicdomain/
|
||||
|
||||
|
||||
var err;
|
||||
try {
|
||||
f = function() { var x; x.y; }
|
||||
trap(f, 0, "");
|
||||
f();
|
||||
} catch (e) {
|
||||
err = e;
|
||||
}
|
||||
assertEq(err instanceof TypeError, true);
|
||||
assertEq(err.message, "x is undefined")
|
||||
|
||||
reportCompare(0, 0, 'ok');
|
||||
|
Загрузка…
Ссылка в новой задаче