move clearInterval, clearTimeout, setInterval and setTimeout to global_timeout_and_interval_symbols as they do not exist in the test sandbox.
This commit is contained in:
parent
b1b088a128
commit
364147a3cf
|
|
@ -240,8 +240,6 @@ issue_2233_1: {
|
||||||
input: {
|
input: {
|
||||||
Array.isArray;
|
Array.isArray;
|
||||||
Boolean;
|
Boolean;
|
||||||
//clearInterval;
|
|
||||||
//clearTimeout;
|
|
||||||
console.log;
|
console.log;
|
||||||
Date;
|
Date;
|
||||||
decodeURI;
|
decodeURI;
|
||||||
|
|
@ -265,8 +263,6 @@ issue_2233_1: {
|
||||||
String.fromCharCode;
|
String.fromCharCode;
|
||||||
RangeError;
|
RangeError;
|
||||||
ReferenceError;
|
ReferenceError;
|
||||||
//setInterval;
|
|
||||||
//setTimeout;
|
|
||||||
SyntaxError;
|
SyntaxError;
|
||||||
TypeError;
|
TypeError;
|
||||||
unescape;
|
unescape;
|
||||||
|
|
@ -276,6 +272,23 @@ issue_2233_1: {
|
||||||
expect_stdout: true
|
expect_stdout: true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
global_timeout_and_interval_symbols: {
|
||||||
|
options = {
|
||||||
|
pure_getters: "strict",
|
||||||
|
side_effects: true,
|
||||||
|
unsafe: true,
|
||||||
|
}
|
||||||
|
input: {
|
||||||
|
// These global symbols do not exist in the test sandbox
|
||||||
|
// and must be tested separately.
|
||||||
|
clearInterval;
|
||||||
|
clearTimeout;
|
||||||
|
setInterval;
|
||||||
|
setTimeout;
|
||||||
|
}
|
||||||
|
expect: {}
|
||||||
|
}
|
||||||
|
|
||||||
issue_2233_2: {
|
issue_2233_2: {
|
||||||
options = {
|
options = {
|
||||||
pure_getters: "strict",
|
pure_getters: "strict",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user