Richard Gibson

Results 268 comments of Richard Gibson
trafficstars

Yes, but I may need help with this one. Is there a standard approach in these packages to mocking dependencies such that `isUnicodeSupported()` can be forced to return false inside...

In what sense does it "work" for strings? ```sh $ eshost -sx 'const s = "foo", p = 1; Object(s)[p] = "x"; s[p] = "x"; print("no error")' #### ChakraCore, engine262,...

Possibly relevant spec references: [HTTP/1.1](https://tools.ietf.org/html/rfc7230#section-3.2.2) prohibits senders from generating headers with duplicate names "unless either the entire field value for that header field is defined as a comma-separated list [i.e.,...

There should also be coverage for edge cases like "1.2000000000000001" vs. "1.2000000000000002", which are numerically equal but only one of which is a canonical numeric string in any given implementation...

> Costly in what sense? Is it more costly for authors to be more precise about how tests are written, or for implementations to have ignored, skiplisted (https://github.com/v8/v8/blob/main/test/test262/test262.status or https://github.com/WebKit/WebKit/blob/main/JSTests/test262/expectations.yaml...

Nice; it correctly found bugs! ## Chakra ``` FAIL test/built-ins/String/prototype/split/errors.js (default) Abrupt completions from GetMethod(_separator_, @@split) are propagated. Expected a SeparatorGetSplitError but got a ReceiverToStringError FAIL test/built-ins/String/prototype/split/errors.js (strict mode) Abrupt...

To copy from https://bugs.webkit.org/show_bug.cgi?id=238050#c5 , `Date.parse` doesn't depend upon TimeClip, and couldn't even use that operation until first parsing a number from input. The above expressions bypass `Date.parse`, and are...

I responded at https://bugs.webkit.org/show_bug.cgi?id=238050#c7 , but the summary is that the only cases where input to TimeClip can have a nonempty fractional component correspond with source text providing a single...

I don't think so, because escape sequences are observable by the function being called: ```js (strings => { const [raw] = strings.raw, [cooked] = strings; console.log(JSON.stringify({raw, cooked})); return cooked ===...

But it _is_ possible to translate a tagged template into a call with arguments by constructing an array of the raw strings, an analogous array of cooked strings, assign the...