test262/test/suite/chapter10/10.4/10.4.2/10.4.2.1-1gs.js

14 lines
353 B
JavaScript
Raw Normal View History

/**
* @path chapter10/10.4/10.4.2/10.4.2.1-1gs.js
* @description Strict Mode - eval code cannot instantiate variable in the variable environment of the calling context that invoked the eval if the code of the calling context is strict code
2011-09-24 20:13:49 +02:00
* @onlyStrict
* @negative NotEarlyError
*/
2011-09-24 02:42:36 +02:00
"use strict";
eval("var x = 7;");
x = 9;
throw NotEarlyError;