From 898c63ab1858d192c517b0ef76ba0c81ffb0a59a Mon Sep 17 00:00:00 2001 From: David Fugate Date: Tue, 27 Mar 2012 09:27:57 -0700 Subject: Fixed https://bugs.ecmascript.org/show_bug.cgi?id=288. --- test/suite/ch10/10.6/10.6-13-a-2.js | 8 ++++++-- test/suite/ch10/10.6/10.6-13-a-3.js | 10 +++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) (limited to 'test') 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(); -- cgit v1.2.3