Files
Kmake/deps/v8/test/inspector/regress/regress-crbug-1510427-expected.txt
2026-05-26 23:36:42 -07:00

75 lines
1.3 KiB
Plaintext

Checks that we don't crash with a mixture of direct/indirect eval and language modes
Pausing via the snippet:
var x = `
(function y() {
with ({}) {
var z = () => { debugger; };
z();
}
})();
`;
(0, eval)(x);
Evaluating "this" on top call frame:
{
result : {
type : undefined
}
}
Pausing via the snippet:
var x = `
(function y() {
with ({}) {
var z = () => { debugger; };
z();
}
})();
`;
eval(x);
Evaluating "this" on top call frame:
{
result : {
type : undefined
}
}
Pausing via the snippet:
'use strict';
var x = `
(function y() {
with ({}) {
var z = () => { debugger; };
z();
}
})();
`;
(0, eval)(x);
Evaluating "this" on top call frame:
{
result : {
type : undefined
}
}
Pausing via the snippet:
'use strict';
var x = `
(function y() {
with ({}) {
var z = () => { debugger; };
z();
}
})();
`;
eval(x);
{
className : SyntaxError
description : SyntaxError: Strict mode code may not include a with statement at <anonymous>:11:10
objectId : 1.1.37
subtype : error
type : object
}