Index: test/mjsunit/regress/regress-2263.js |
diff --git a/test/mjsunit/regress/regress-110509.js b/test/mjsunit/regress/regress-2263.js |
similarity index 88% |
copy from test/mjsunit/regress/regress-110509.js |
copy to test/mjsunit/regress/regress-2263.js |
index 132bd233bee32f6c84061049224ea43901dae06a..9a9db58773b18af75e686f8d11b607de867fde53 100644 |
--- a/test/mjsunit/regress/regress-110509.js |
+++ b/test/mjsunit/regress/regress-2263.js |
@@ -25,17 +25,6 @@ |
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
-// Flags: --allow-natives-syntax |
- |
-// Verify that LRandom preserves rsi correctly. |
- |
-function foo() { |
- Math.random(); |
- new Function(""); |
-} |
- |
-foo(); |
-foo(); |
-foo(); |
-%OptimizeFunctionOnNextCall(foo); |
-foo(); |
+var obj = { length: { valueOf: function(){ throw { type: "length" }}}}; |
+var sep = { toString: function(){ throw { type: "toString" }}}; |
+assertThrows("Array.prototype.join.call(obj, sep)", undefined, "length"); |