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: {
|
||||
Array.isArray;
|
||||
Boolean;
|
||||
//clearInterval;
|
||||
//clearTimeout;
|
||||
console.log;
|
||||
Date;
|
||||
decodeURI;
|
||||
|
|
@ -265,8 +263,6 @@ issue_2233_1: {
|
|||
String.fromCharCode;
|
||||
RangeError;
|
||||
ReferenceError;
|
||||
//setInterval;
|
||||
//setTimeout;
|
||||
SyntaxError;
|
||||
TypeError;
|
||||
unescape;
|
||||
|
|
@ -276,6 +272,23 @@ issue_2233_1: {
|
|||
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: {
|
||||
options = {
|
||||
pure_getters: "strict",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user