Index: test/mjsunit/es6/block-eval-var-over-let.js |
diff --git a/test/mjsunit/es6/block-eval-var-over-let.js b/test/mjsunit/es6/block-eval-var-over-let.js |
index febc83fa41365d796892431d241458ce3df15df2..b68dbdd12ddafb138f9d8aebda1757154f2ac4ef 100644 |
--- a/test/mjsunit/es6/block-eval-var-over-let.js |
+++ b/test/mjsunit/es6/block-eval-var-over-let.js |
@@ -8,13 +8,13 @@ |
assertThrows(function() { |
let x = 1; |
eval('var x'); |
-}, TypeError); |
+}, SyntaxError); |
// If the eval is in its own block scope, throws |
assertThrows(function() { |
let y = 1; |
{ eval('var y'); } |
-}, TypeError); |
+}, SyntaxError); |
// If the let is in its own block scope, with the eval, throws |
assertThrows(function() { |
@@ -22,7 +22,7 @@ assertThrows(function() { |
let x = 1; |
eval('var x'); |
} |
-}, TypeError); |
+}, SyntaxError); |
// Legal if the let is no longer visible |
assertDoesNotThrow(function() { |
@@ -37,13 +37,13 @@ assertDoesNotThrow(function() { |
assertThrows(function() { |
const x = 1; |
eval('var x'); |
-}, TypeError); |
+}, SyntaxError); |
// If the eval is in its own block scope, throws |
assertThrows(function() { |
const y = 1; |
{ eval('var y'); } |
-}, TypeError); |
+}, SyntaxError); |
// If the const is in its own block scope, with the eval, throws |
assertThrows(function() { |
@@ -51,7 +51,7 @@ assertThrows(function() { |
const x = 1; |
eval('var x'); |
} |
-}, TypeError); |
+}, SyntaxError); |
// Legal if the const is no longer visible |
assertDoesNotThrow(function() { |