docs: Improve clock doc
This commit is contained in:
parent
727b2189e4
commit
3f74fc8320
|
|
@ -12,7 +12,7 @@ If you believe you have found a security vulnerability in any Microsoft-owned re
|
|||
|
||||
Instead, please report them to the Microsoft Security Response Center (MSRC) at [https://msrc.microsoft.com/create-report](https://msrc.microsoft.com/create-report).
|
||||
|
||||
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc).
|
||||
If you prefer to submit without logging in, send email to [secure@microsoft.com](mailto:secure@microsoft.com). If possible, encrypt your message with our PGP key; please download it from the [Microsoft Security Response Center PGP Key page](https://www.microsoft.com/en-us/msrc/pgp-key-msrc).
|
||||
|
||||
You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message. Additional information can be found at [microsoft.com/msrc](https://www.microsoft.com/msrc).
|
||||
|
||||
|
|
|
|||
|
|
@ -130,7 +130,7 @@ Time may be the number of milliseconds to advance the clock by or a human-readab
|
|||
* since: v1.45
|
||||
- returns: <[int]>
|
||||
|
||||
Advances the clock to the the moment of the first scheduled timer, firing it.
|
||||
Advances the clock to the moment of the first scheduled timer, firing it.
|
||||
Returns fake milliseconds since the unix epoch.
|
||||
|
||||
**Usage**
|
||||
|
|
|
|||
|
|
@ -378,7 +378,7 @@ export function tokenize(str1: string): CSSTokenInterface[] {
|
|||
};
|
||||
|
||||
const consumeEscape = function() {
|
||||
// Assume the the current character is the \
|
||||
// Assume the current character is the \
|
||||
// and the next code point is not a newline.
|
||||
consume();
|
||||
if (hexdigit(code)) {
|
||||
|
|
@ -392,11 +392,16 @@ export function tokenize(str1: string): CSSTokenInterface[] {
|
|||
break;
|
||||
}
|
||||
}
|
||||
if (whitespace(next()))
|
||||
consume();
|
||||
let value = parseInt(digits.map(function(x) { return String.fromCharCode(x); }).join(''), 16);
|
||||
if (value > maximumallowedcodepoint)
|
||||
value = 0xfffd;
|
||||
if (whitespace(next())) consume();
|
||||
let value = parseInt(
|
||||
digits
|
||||
.map(function (x) {
|
||||
return String.fromCharCode(x);
|
||||
})
|
||||
.join(""),
|
||||
16
|
||||
);
|
||||
if (value > maximumallowedcodepoint) value = 0xfffd;
|
||||
return value;
|
||||
} else if (eof()) {
|
||||
return 0xfffd;
|
||||
|
|
|
|||
Loading…
Reference in a new issue