From 8a382ff8537fea8c525dcffa25a61de3642e83d2 Mon Sep 17 00:00:00 2001 From: Sam Stephenson Date: Sat, 28 Apr 2007 03:00:57 +0000 Subject: [PATCH] prototype: Set window.$continue to an Error with a helpful message for anyone who may still be using 'throw $continue'. --- CHANGELOG | 2 ++ src/enumerable.js | 3 +-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG b/CHANGELOG index 3acd85f..65048d8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* Set window.$continue to an Error with a helpful message for anyone who may still be using "throw $continue". [sam] + * Fix jstest.rb IE support so you don't have to close the IE window after each test (yay!). Closes #8207. [Ryan Schuft] * Fix jstest.rb Konqueror support. Closes #7140. [Christophe Porteneuve] diff --git a/src/enumerable.js b/src/enumerable.js index 6019a7a..e58debc 100644 --- a/src/enumerable.js +++ b/src/enumerable.js @@ -1,5 +1,4 @@ -var $break = new Object(); -var $continue = new Object(); +var $break = {}, $continue = new Error('"throw $continue" is deprecated, use "return" instead'); var Enumerable = { each: function(iterator) {