| Index: test/mjsunit/eval-typeof-non-existing.js
|
| ===================================================================
|
| --- test/mjsunit/eval-typeof-non-existing.js (revision 3208)
|
| +++ test/mjsunit/eval-typeof-non-existing.js (working copy)
|
| @@ -25,8 +25,11 @@
|
| // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
| // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
| -// Typeof expression must resolve to undefined when it used on a
|
| +// Typeof expression must resolve to 'undefined' when it used on a
|
| // non-existing property. It is *not* allowed to throw a
|
| // ReferenceError.
|
| assertEquals('undefined', typeof xxx);
|
| assertEquals('undefined', eval('typeof xxx'));
|
| +
|
| +assertThrows('typeof(true ? xxx : yyy)', ReferenceError);
|
| +assertThrows('with ({}) { typeof(true ? xxx : yyy) }', ReferenceError);
|
|
|