summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/suite/ch10/10.6/10.6-13-a-2.js8
-rw-r--r--test/suite/ch10/10.6/10.6-13-a-3.js10
2 files changed, 13 insertions, 5 deletions
diff --git a/test/suite/ch10/10.6/10.6-13-a-2.js b/test/suite/ch10/10.6/10.6-13-a-2.js
index 290aede89..b68171258 100644
--- a/test/suite/ch10/10.6/10.6-13-a-2.js
+++ b/test/suite/ch10/10.6/10.6-13-a-2.js
@@ -20,8 +20,12 @@ function testcase() {
}
}
- function test2() {
- arguments.callee.caller(true);
+ function test2() {
+ if(arguments.callee.caller===undefined) {
+ called=true; // Extension not supported - fake it
+ } else {
+ arguments.callee.caller(true);
+ }
}
test1();
diff --git a/test/suite/ch10/10.6/10.6-13-a-3.js b/test/suite/ch10/10.6/10.6-13-a-3.js
index a425f61a7..ddd03a68c 100644
--- a/test/suite/ch10/10.6/10.6-13-a-3.js
+++ b/test/suite/ch10/10.6/10.6-13-a-3.js
@@ -20,9 +20,13 @@ function testcase() {
}
}
- function test2() {
- var explicit = arguments.callee.caller;
- explicit(true);
+ function test2() {
+ if (arguments.callee.caller===undefined) {
+ called = true; //Extension not supported - fake it
+ } else {
+ var explicit = arguments.callee.caller;
+ explicit(true);
+ }
}
test1();