diff options
author | David Fugate <dfugate@microsoft.com> | 2012-03-27 09:27:57 -0700 |
---|---|---|
committer | David Fugate <dfugate@microsoft.com> | 2012-03-27 09:27:57 -0700 |
commit | 898c63ab1858d192c517b0ef76ba0c81ffb0a59a (patch) | |
tree | 582c7c872cf491fce523ea4de86f2f0123ee7bd4 /test | |
parent | d6634f8e10f5341a0ba0a31063d0a92baa3db100 (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.js | 8 | ||||
-rw-r--r-- | test/suite/ch10/10.6/10.6-13-a-3.js | 10 |
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();
|