blob: b9703283030183e4bb029d4950f7482355bd5433 [file] [log] [blame]
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
}