mirror of https://github.com/tc39/test262.git
14 lines
363 B
JavaScript
14 lines
363 B
JavaScript
|
|
|
|
/**
|
|
* @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
|
|
* @onlyStrict
|
|
* @negative ^((?!NotEarlyError).)*$
|
|
*/
|
|
|
|
"use strict";
|
|
eval("var x = 7;");
|
|
x = 9;
|
|
throw NotEarlyError;
|