| Index: test/mjsunit/property-load-across-eval.js
|
| diff --git a/test/mjsunit/property-load-across-eval.js b/test/mjsunit/property-load-across-eval.js
|
| index 222c0e965e18ddf19c4741c7f1ebe04e226c651c..808ac5829e7a006f6e7179a0b27ea72b7d7236a2 100644
|
| --- a/test/mjsunit/property-load-across-eval.js
|
| +++ b/test/mjsunit/property-load-across-eval.js
|
| @@ -25,21 +25,15 @@
|
| // (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: --legacy-const
|
| -
|
| // Tests loading of properties across eval calls.
|
|
|
| var x = 1;
|
| function global_function() { return 'global'; }
|
| -const const_uninitialized;
|
| -const const_initialized = function() { return "const_global"; }
|
|
|
| // Test loading across an eval call that does not shadow variables.
|
| function testNoShadowing() {
|
| var y = 2;
|
| function local_function() { return 'local'; }
|
| - const local_const_uninitialized;
|
| - const local_const_initialized = function() { return "const_local"; }
|
| function f() {
|
| eval('1');
|
| assertEquals(1, x);
|
| @@ -47,44 +41,12 @@ function testNoShadowing() {
|
| assertEquals(2, y);
|
| assertEquals('global', global_function());
|
| assertEquals('local', local_function());
|
| - var exception = false;
|
| - try {
|
| - const_uninitialized();
|
| - } catch(e) {
|
| - exception = true;
|
| - }
|
| - assertTrue(exception);
|
| - assertEquals('const_global', const_initialized());
|
| - exception = false;
|
| - try {
|
| - local_const_uninitialized();
|
| - } catch(e) {
|
| - exception = true;
|
| - }
|
| - assertTrue(exception);
|
| - assertEquals('const_local', local_const_initialized());
|
| function g() {
|
| assertEquals(1, x);
|
| try { typeof(asdf); } catch(e) { assertUnreachable(); }
|
| assertEquals(2, y);
|
| assertEquals('global', global_function());
|
| assertEquals('local', local_function());
|
| - var exception = false;
|
| - try {
|
| - const_uninitialized();
|
| - } catch(e) {
|
| - exception = true;
|
| - }
|
| - assertTrue(exception);
|
| - assertEquals('const_global', const_initialized());
|
| - exception = false;
|
| - try {
|
| - local_const_uninitialized();
|
| - } catch(e) {
|
| - exception = true;
|
| - }
|
| - assertTrue(exception);
|
| - assertEquals('const_local', local_const_initialized());
|
| }
|
| g();
|
| }
|
|
|