PR-URL: https://github.com/nodejs/node/pull/23423 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Myles Borins <myles.borins@gmail.com>
12 lines
355 B
JavaScript
12 lines
355 B
JavaScript
// Copyright 2018 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.
|
|
|
|
"use strict";
|
|
var s = "function __f_9(func, testName) {" +
|
|
"var __v_0 = function __f_10(__v_14, __v_14) {" +
|
|
" return __v_16;" +
|
|
"}; " +
|
|
"}"
|
|
assertThrows(function() { eval(s); });
|