summaryrefslogtreecommitdiff
path: root/test/language/statements/function/13.1-38-s.js
diff options
context:
space:
mode:
authorAndré Bargull <andre.bargull@gmail.com>2015-08-11 17:43:01 +0200
committerAndré Bargull <andre.bargull@gmail.com>2015-08-11 17:43:01 +0200
commit7f55f60b5fde724d9e1bcb12b342382322519fd3 (patch)
treec1032006d8d9b6d1ca9282b6ec883c102e473747 /test/language/statements/function/13.1-38-s.js
parent3de484fe8353448bf0496369f192cbd7a51cc4a0 (diff)
downloadqtdeclarative-testsuites-7f55f60b5fde724d9e1bcb12b342382322519fd3.tar.gz
Replace runTestCase with assert.throws [test/language/statements]
Diffstat (limited to 'test/language/statements/function/13.1-38-s.js')
-rw-r--r--test/language/statements/function/13.1-38-s.js11
1 files changed, 2 insertions, 9 deletions
diff --git a/test/language/statements/function/13.1-38-s.js b/test/language/statements/function/13.1-38-s.js
index bc5c1a49e..ac4db793d 100644
--- a/test/language/statements/function/13.1-38-s.js
+++ b/test/language/statements/function/13.1-38-s.js
@@ -8,16 +8,9 @@ description: >
Identifier of a FunctionExpression whose FunctionBody is contained
in strict code
flags: [noStrict]
-includes: [runTestCase.js]
---*/
-function testcase() {
var _13_1_38_s = {};
- try {
+assert.throws(SyntaxError, function() {
eval("_13_1_38_s.x = function eval() {'use strict'; };");
- return false;
- } catch (e) {
- return e instanceof SyntaxError;
- }
- }
-runTestCase(testcase);
+});