aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Fugate <dfugate@microsoft.com>2012-03-27 09:27:57 -0700
committerDavid Fugate <dfugate@microsoft.com>2012-03-27 09:27:57 -0700
commit898c63ab1858d192c517b0ef76ba0c81ffb0a59a (patch)
tree582c7c872cf491fce523ea4de86f2f0123ee7bd4 /test
parentd6634f8e10f5341a0ba0a31063d0a92baa3db100 (diff)
Fixed https://bugs.ecmascript.org/show_bug.cgi?id=288.
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();