/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/test/mjsunit/disallow-codegen-from-strings.js
9 строк
361 B
Jakob Kummerow
deps: cherry-pick 0bcb1d6f from upstream V8
06 мар 2018, 04:30
Не верифицирован
06 мар 2018, 04:30
8a54f4f
Код
Авторство
О чём код?
// Copyright 2017 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // Flags: --disallow-code-generation-from-strings assertThrows("1 + 1", EvalError); assertThrows(() => eval("1 + 1"), EvalError); assertThrows(() => Function("x", "return x + 1"), EvalError);