2011-09-14 09:39:29 +02:00
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @path chapter10/10.4/10.4.2/10.4.2.1-1gs.js
|
2011-09-14 21:49:33 +02:00
|
|
|
* @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
|
2011-09-26 02:05:32 +02:00
|
|
|
* @negative ^((?!NotEarlyError).)*$
|
2011-09-14 09:39:29 +02:00
|
|
|
*/
|
|
|
|
|
2011-09-24 02:42:36 +02:00
|
|
|
"use strict";
|
2011-09-14 09:39:29 +02:00
|
|
|
eval("var x = 7;");
|
|
|
|
x = 9;
|
|
|
|
throw NotEarlyError;
|