Skip to content

Commit

Permalink
Disallow setInterval
Browse files Browse the repository at this point in the history
Change-Id: I7ab404b5519afe54229251f5461b7043454dbe51
  • Loading branch information
joeyparrish committed Nov 27, 2017
1 parent 2f9f487 commit 56a463c
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion build/conformance.textproto
Original file line number Diff line number Diff line change
Expand Up @@ -93,14 +93,33 @@ requirement: {
}


#Disallow classList toggle.
# Disallow classList toggle.
requirement: {
type: BANNED_PROPERTY_CALL
value: 'DOMTokenList.prototype.toggle'
error_message: 'classList toggle is not supported in IE11'
}


# Disallow setInterval.
requirement: {
type: BANNED_NAME
value: 'window.setInterval'
error_message: 'Using "setInterval" is not allowed. '
'Use shaka.util.Timer.prototype.scheduleRepeated instead.'
whitelist_regexp: 'demo/*'
whitelist_regexp: 'test/*'
}
requirement: {
type: BANNED_NAME
value: 'setInterval'
error_message: 'Using "setInterval" is not allowed. '
'Use shaka.util.Timer.prototype.scheduleRepeated instead.'
whitelist_regexp: 'demo/*'
whitelist_regexp: 'test/*'
}


# Disallow ES6 methods.
requirement: {
type: BANNED_PROPERTY
Expand Down

0 comments on commit 56a463c

Please sign in to comment.